I need help tracking down an issue with the temp folder. Our temporary files are being deleted before the user has time to press the upload button.
At first I thought it was an error because the files were not being uploaded to the temporary folder. But after watching the temp folder carefully we did see the file being upload but it was deleted, sometimes immediately and sometimes only after 5 minutes on the live server. I then tried to replicate the issue on our dev servers, but it did not happen as fast (probably because they are not under the same load). Files only got deleted after 1 hour (2 developers saw this at the same time, while watching the folder, without anyone having a session open to the site on any browser).
After scouring the internet I found that the temporary files only get deleted in the following situations (http://www.telerik.com/forums/radasyncupload---cannot-find-the-temporary-file):
- you use FileSave() method. (we are not using this as can be seen from our code below)
- it expires. The default expire time is 4 hours and it can be increased.
- the Application pool is recycled.
Here is the code:
Below is the code for when the upload button is pressed, but we never press it and the files still get deleted:
 myData =
screenshot.InputStream.Read(myData, 0, myData.Length);
, item.ScreenshotID.ToString() + screenshot.GetExtension(), myData);
My questions thus are, what method(s) does the RadAsyncUpload use to delete the files? Or is there anything you can suggest I look at to resolve the issue? How would I know if the Application Pool Recycling is the culprit and how does the application pool know these are temporary files (My apologies I am not too familiar with servers).
using Telerik v.2015.1.225.45
Servers use load balancing