4 posts, 0 answers
  1. Gerry
    Gerry avatar
    1 posts
    Member since:
    Aug 2011

    Posted 26 Aug 2011 Link to this post

    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" />

  2. Peter Filipov
    Peter Filipov avatar
    1028 posts

    Posted 30 Aug 2011 Link to this post

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

  3. Yan
    Yan avatar
    4 posts
    Member since:
    Dec 2012

    Posted 23 Jul 2018 Link to this post

    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


  4. Marin Bratanov
    Marin Bratanov avatar
    5243 posts

    Posted 23 Jul 2018 Link to this post

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

    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.
Back to Top