I have a web form that allows users to upload files when they open a ticket on our system. Downloading is performed using the asyncFileUpload control "ajax control toolkit".
The idea is to save the files in the temp directory and only save them in a permanent place when the user clicks the commit button.
I would like to be able to get rid of temporary files that are no longer relevant (for example, the user leaves the page open for a month without submitting the form).
What would be the best way to not store temporary files forever. Maybe store files in a session? Maybe keep them in view?
I could add JS to the timeout page and add code that runs when the user leaves the page. But these ideas are customer solutions. I would not want anyone to interfere with the code and leave me trash in my system.
Any other idea?
Thanks Summerbulb
source
share