Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Finished SendFile
#1
Can you detect when WebApplication.SendFile is finished?
Reply
#2
Not really.... SendFile is an asynchronous method, meaning that it returns before being actually executed. The whole process which deals with the file stream (encoding it and sending it to the browser) happens at a later stage.

What are you trying to achieve?
Reply
#3
(08-02-2020, 09:25 AM)Alexandre Machado Wrote: Not really.... SendFile is an asynchronous method, meaning that it returns before being actually executed. The whole process which deals with the file stream (encoding it and sending it to the browser) happens at a later stage.

What are you trying to achieve?

If i download my PDF finished, i want delete this file from server temp.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)