<telerik:RadAsyncUpload ID="radAsyncUpload" CssClass="hide4print" runat="server" MaxFileInputsCount="10" InitialFileInputsCount="1" MultipleFileSelection="Automatic" OnValidatingFile="RadAsyncUpload_ValidatingFile" />
3 Answers, 1 is accepted
I tested your sample code on my side and didn't reproduce the issue.
Please try to setup a working sample project that demonstrates the issue and send it for a local test.
the Telerik team
Radasyncupload temporary files are deleted prior to Temporary File Expiration value ( The value is 1 hour)
Issue one-the temporary
file expiration time does not work as expected:
temporary file get deleted from server after 5 minutes if this setting is set to 5 minutes(expected);
temporary file get deleted from server after 20 minutes if this setting is set to 20 minutes(expected);
temporary file get deleted from server around 30 minutes if this setting is set to 1 hour or 4 hours.
Issue two-multiple temporary files get deleted at one time around 30 or 40 minutes even their uploaded time are different.
Example: a. set the expiration time to 20 minutes.
b. user1 uploaded file1 at 11:00AM,
c. user2 uploaded file2 at 11:05AM,
d. user1 saved file1 at 11:10Am and uploaded another file3 at 11:12AM
e. the expiration time for file2 should be 11:25PM and file3 should be 11:32PM base on the setting in step a. But actually, all files are removed around 11:21AM.
Issue is all files get removed at same time not base on their uploaded time. this is not expected and that means multiple user upload multiple files will have problem for sure.
Telerik.Web.UI version is 2016.2.607.40, .net framework is 4.5.2
RadAsyncUpload simply adds a cache dependency with the provided time. This is a .NET feature and the only reason I can think of for the cache to get purged early is that the application pool recycles. The default time for an application pool recycle is 20 minutes so if there isn't activity on the app for 20ish minutes, it is possible that the recycle happens and this purges the cache.
Here's what the method does (https://msdn.microsoft.com/en-us/library/4y13wyk9(v=vs.110).aspx):