Last post Apr 01, 2013 05:56 AM by lihkink
Jan 03, 2013 12:54 AM|lihkink|LINK
I am working on project where functionality of file uplaod has to be provided.
Everything seems to be working fine except one thing : Files generated in App_data/Temp folder seem to remain.
I have observed that files are generated because of the file upload functionality and those files never get deleted. As in my case, files uploaded are going to be of large size, it may block huge amount of memory in long run.
Could anyone please tell me how I can remove those files ? or How to avoid generating those file at first place ?
Jan 03, 2013 03:41 AM|oned_gk|LINK
try use session start or session end
string tempfolder = Server.MapPath("~/App_data/") + @"\" + "temp";
After delete it and recreate the folder
Apr 01, 2013 05:56 AM|lihkink|LINK
Apologies for such a late reply.
Actually it was my mistake in the implementation which created the entries twice. But yes, I did what you had suggested to delete files.
Thank you very much for the reply\answer.