HI All,
I have a web page where users can add multiple attachments one by one and files should be shown in a gridview and should be opened on file name click. Now, to show the files, or to download the files, i have to store those files on the server.
So, I am creating a folder with random guids as the name and saving all the files added by the use in that folder.
Till this its fine, now the question is I want to delete this temparory folder after I save the data to database. I am doing that on save click, but what if the user closes the browse or navigates to other page without saving ?
Should I add the deleting folder code in session_end or application_end ? How application_end works, as not able to debug this event.
...
Go to the complete details ...