-
Downloading of a file
I have a program setup where users will get an e-mail with a URL to a web site and a random password for a file. When they enter the file password they get redirected to a web page that contains a link to that one file (it's a zip file) matching the password. Using the <A href...></A> tags, they can either click the file line or right click and select save as to get the file. What I'd like to do next is remove the file from the server when the download is complete (rather than doing the maintenance myself). When would be the best way to do this ? I went with the <A href> tags since this was the quickest way to get the page completed based on the time constraints I had. Thanks.
Chris
-
Not 100% sure but maybe I can suggest and Idea.
When the use goes to the page it creates a session state that lasts maybe 20 minutes or whatever you think is appropriate. Once the session ends (either via time limit or the user closing the browser) it kills the file.
-
Hey Graff
That's a neat idea, I'll have to give it some thought and let you know.
Chris