ASP temp files

  • Thread starter Thread starter Nikolay Petrov
  • Start date Start date
N

Nikolay Petrov

I have an ASP .NET page where a user uploads file, then this file is
processed and finaly a result file is downloaded to user.
My question is: Is there a way to find if user have downloaded the file, so
I can remove it from server?

TIA
 
Hi.
I know it's not what you're looking for,
but it's a possible solution.
You can run a process once a day, that removes day old files.
Regards.
 
If you stream the file using Response.WriteFile you should be able to delete
then this file following this streaming statement...

Patrice
 
So say the connection was dropped half way thru the transmission to the
client (internet connection problems, end-user closed browser prematurely,
etc) then wouldn't the delete still run even though file wasn't completely
received by the client?
 
AFAIK the server doesn't care. The page will run unless you tell otherwise
(IsClientConnected if I remember).

Patrice

--
 
For my current project droping the connection in half of file is not
problem, the user can resubmit the source file again, because it size is
rather small.
So if Response.WriteFile is used the next line is executed after the user
have downloaded the file, right?
 
Back
Top