This is a migrated thread and some comments may be shown as answers.

RadAsyncUpload

3 Answers 186 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Gerry
Top achievements
Rank 1
Gerry asked on 26 Aug 2011, 03:31 PM
When trying to apply the "ID" attribute to this control in the ASP.NET page, I get the following error: "Cannont resolve symbol 'radAsyncUpload'".  Here's my code-snippet:

<
telerik:RadAsyncUpload ID="radAsyncUpload" CssClass="hide4print" runat="server" MaxFileInputsCount="10" InitialFileInputsCount="1" MultipleFileSelection="Automatic" OnValidatingFile="RadAsyncUpload_ValidatingFile" />







3 Answers, 1 is accepted

Sort by
0
Peter Filipov
Telerik team
answered on 30 Aug 2011, 09:08 AM
Hi Gerry,

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.

Best wishes,
Peter Filipov
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Yan
Top achievements
Rank 1
answered on 23 Jul 2018, 08:05 PM

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

 

0
Marin Bratanov
Telerik team
answered on 23 Jul 2018, 08:30 PM
Hi Yan,

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):

internal protected virtual void AddCacheDependency(HttpContext context, string tempFileName, TimeSpan timeToLive, string fullPath)
{
    if (context.Cache.Get(tempFileName) == null)
        context.Cache.Insert(tempFileName, fullPath, null, DateTime.Now.Add(timeToLive), TimeSpan.Zero, CacheItemPriority.NotRemovable, RemovedCallback);
}


Regards,
Marin Bratanov
Progress Telerik
Try our brand new, jQuery-free Angular components built from ground-up which deliver the business app essential building blocks - a grid component, data visualization (charts) and form elements.
Tags
AsyncUpload
Asked by
Gerry
Top achievements
Rank 1
Answers by
Peter Filipov
Telerik team
Yan
Top achievements
Rank 1
Marin Bratanov
Telerik team
Share this question
or