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

RadAsyncUpload hangs, freezes IE

5 Answers 296 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Michael Malone
Top achievements
Rank 1
Michael Malone asked on 17 Aug 2015, 01:11 PM

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​

5 Answers, 1 is accepted

Sort by
0
Accepted
Dimitar
Telerik team
answered on 18 Aug 2015, 11:24 AM
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
0
Michael Malone
Top achievements
Rank 1
answered on 18 Aug 2015, 12:35 PM

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; }​

0
Dimitar
Telerik team
answered on 18 Aug 2015, 02:31 PM
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
0
ss
Top achievements
Rank 1
answered on 14 Apr 2016, 04:52 PM

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!

0
Dimitar
Telerik team
answered on 15 Apr 2016, 12:04 PM
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.
Tags
AsyncUpload
Asked by
Michael Malone
Top achievements
Rank 1
Answers by
Dimitar
Telerik team
Michael Malone
Top achievements
Rank 1
ss
Top achievements
Rank 1
Share this question
or