RadAsyncUpload hangs, freezes IE

6 posts, 1 answers
  1. Michael Malone
    Michael Malone avatar
    68 posts
    Member since:
    May 2010

    Posted 17 Aug 2015 Link to this post

    We're experiencing intermittent issues with RadAsyncUpload getting stuck on the yellow progress meter and never finishing the upload of a file. It's also causing IE to crash when this happens. 

     

    I found this bug report that claims an issue with IE has been resolves, but we are still experiencing the issue. 

     

    https://connect.microsoft.com/IE/feedback/details/819941/file-upload-stop-working-on-ie-with-windows-authentication

     

    We're currently using Telerik_UI_for_ASP.NET_AJAX_2015_1_225_Dev_hotfix​

  2. Answer
    Dimitar
    Admin
    Dimitar avatar
    281 posts

    Posted 18 Aug 2015 Link to this post

    Hi,

    The issue status is still Active so it does not seem as resolved, although the last post by Microsoft on it mentions they no longer reproduce it. I would suggest you to add a comment in that thread to report that the issue is still reproducible in your case.

    Meanwhile, I would suggest you to try a workaround. Add the following script tag to your page to disable the FileAPI RadAsyncUpload Module for IE 10 and 11:

    Copy Code
    <script type="text/javascript">
        if (Telerik.Web.Browser.ie && (Telerik.Web.Browser.version == 10 || Telerik.Web.Browser.version == 11)) {
            Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable = function () { return false; }
        }
    </script>

    The script checks if the browser used is IE with version 10 or 11. If that condition is met, we return false for FileApi support. Thus, the RadAsyncUpload will use the Silverlight module for uploading.

    If Silverlight module still causes the browser to freeze, the other option is to add a second line within the IF condition. It will disable the Silverlight module as well. The code then would be:

    Copy Code
    <script type="text/javascript">
        if (Telerik.Web.Browser.ie && (Telerik.Web.Browser.version == 10 || Telerik.Web.Browser.version == 11)) {
            Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable = function () { return false; }
            Telerik.Web.UI.RadAsyncUpload.Modules.Silverlight.isAvailable = function () { return false; }
        }
    </script>

    As a result, the RadAsyncUpload will fallback to iframe. In this case, files will be uploaded at once - no chunk upload will be available.

    These are the two workarounds that I would suggest you to try in order to overcome the IE browser bug.
    I hope that they will help you achieve the desired result.

    Regards,
    Dimitar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Michael Malone
    Michael Malone avatar
    68 posts
    Member since:
    May 2010

    Posted 18 Aug 2015 in reply to Dimitar Link to this post

    Someone in a thread with a similar issue also recommended  disabling Flash. Would that be nesessary?

     

    Telerik.Web.UI.RadAsyncUpload.Modules.Flash.isAvailable = function () { return false; }​

  5. Dimitar
    Admin
    Dimitar avatar
    281 posts

    Posted 18 Aug 2015 Link to this post

    Hi,

    Yes, you may disable Flash as well with that code. Note that these settings will be applied only to the problematic IE browser versions, if you use the browser check provided in my previous post. So you may test disabling modules one by one until you workaround the IE bug.

    Regards,
    Dimitar
    Telerik
    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
  6. ss
    ss avatar
    6 posts
    Member since:
    Jan 2015

    Posted 14 Apr Link to this post

    Hi below is our code

    <%= Html.Telerik().Upload()
        .HtmlAttributes(new { @style = "display:inline;" })
            .Name("attachments")
            .Multiple(true)
            .ShowFileList(false)
            .ClientEvents(events => events         
            )
            .Async(async => async
            .Save("xxxx", "yy", new { Area = "" })
            )

     

    Adding the snippet as per the suggestion

    <script type="text/javascript">
        if (Telerik.Web.Browser.ie && (Telerik.Web.Browser.version == 10 || Telerik.Web.Browser.version == 11)) {
            Telerik.Web.UI.RadAsyncUpload.Modules.FileApi.isAvailable = function () { return false; }
        }
    </script>

    It doesnt seem to recognize Telerik.web.Ui

    I'm running into same cant upload to IE10, 11 issue.

     

    Thanks!

  7. Dimitar
    Admin
    Dimitar avatar
    281 posts

    Posted 15 Apr Link to this post

    Hi,

    This thread discusses an issue with the RadAsyncUpload control, which is part of the Telerik UI for ASP.NET AJAX suite. And your code defines an Upload control from the Telerik Extensions for ASP.NET MVC suite. That's why the suggested solution is not applicable for your product.

    I would like to point out that the Telerik Extensions for ASP.NET MVC product support has been discontinued. You may check our help article Migration from Telerik Extensions for ASP.NET MVC for more information how to migrate to Telerik UI for ASP.NET MVC.

    Regards,
    Dimitar
    Telerik
    Do you need help with upgrading your ASP.NET AJAX, WPF or WinForms projects? Check the Telerik API Analyzer and share your thoughts.
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017