Hi,
i use a customrestevent in iwbootstrap library (isapi.dll) to download a pdf file from a server. Intraweb version 15.2.48
This is the code
procedure My.BSDownloadAutoDichiarazioneCustomRestEvents0RestEvent(aApplication: TIWApplication; aRequest: THttpRequest; aReply: THttpReply;aParams: TStrings);
begin
inherited;
aReply.Headers.Values['Content-Disposition'] := Format('attachment; filename="%s";', [ExtractFileName(NomeFileToDownload)]);
aReply.SendFile(NomeFileToDownload, True, False);
end;
In chrome and samsung browser add the .html extension to the and i can't open it with the standard adobe reader viewer. (In firefox seems that this does not happen)
In Standalone mode this does not happens.
Thank you for Help
Andrea
i use a customrestevent in iwbootstrap library (isapi.dll) to download a pdf file from a server. Intraweb version 15.2.48
This is the code
procedure My.BSDownloadAutoDichiarazioneCustomRestEvents0RestEvent(aApplication: TIWApplication; aRequest: THttpRequest; aReply: THttpReply;aParams: TStrings);
begin
inherited;
aReply.Headers.Values['Content-Disposition'] := Format('attachment; filename="%s";', [ExtractFileName(NomeFileToDownload)]);
aReply.SendFile(NomeFileToDownload, True, False);
end;
In chrome and samsung browser add the .html extension to the and i can't open it with the standard adobe reader viewer. (In firefox seems that this does not happen)
In Standalone mode this does not happens.
Thank you for Help
Andrea