Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
WebApplication.SendFile question
#1
Hi, 
putting the code in a buttons AsyncClick-event the 4 parameter with the filename is ignored. This can be reproduced with the DownloadFromCache sample project. 
Code:
procedure TIWForm23.btnDownloadAsyncClick(Sender: TObject;
  EventParams: TStringList);
begin
  WebApplication.SendFile(gSC.CacheDir + FFileName, True, FContentType, 'SampleFile.txt');
end;

In mine real time app I've code where after a SendFile in the browser appears the hourglass and hangs when the same code is executed from the click-event, but works fine from the AsyncClick-event. But the AsyncClick has above problem ignoring the filename.
IW15.1.0 Evaluation, Delphi Rio 10.3.1
Thx
Toni
Reply


Messages In This Thread
WebApplication.SendFile question - by Toni Santa - 07-31-2019, 03:50 PM
RE: WebApplication.SendFile question - by matija - 08-05-2019, 12:41 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)