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