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

Not working in some IE10s

1 Answer 35 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Thomas E
Top achievements
Rank 1
Thomas E asked on 03 Oct 2013, 05:04 PM
Hello,

Using the RadAsync Upload and it's failing for some IE10s. (Red Dot after Upload).
Forms Authentication.
Location specific authorization for Telerik.Web.UI.WebResource.axd.
Windows8 Client
IE10 browser only fails. -- Some client systems with IE10 succeed.

Any help would be appreciated

1 Answer, 1 is accepted

Sort by
0
Hristo Valyavicharski
Telerik team
answered on 08 Oct 2013, 01:24 PM
Hi Thomas,

The red dot usually appears, when the file validation fails. This happens when uploaded file exceeds the maximum allowed file size or when it is of file type that is not allowed. Try to handle OnClientValidationFailed event and check if this event will be fired:
<telerik:RadAsyncUpload runat="server" ID="RadAsyncUpload1" OnClientValidationFailed="OnClientValidationFailed"></telerik:RadAsyncUpload>

function OnClientValidationFailed(sender, args) {
    var fileExtention = args.get_fileName().substring(args.get_fileName().lastIndexOf('.') + 1, args.get_fileName().length);
    if (args.get_fileName().lastIndexOf('.')!=-1) {//this checks if the extension is correct
        if (sender.get_allowedFileExtensions().indexOf(fileExtention)==-1) {
            alert("Wrong Extension!");
        }
        else {
            alert("Wrong file size!");
        }
    }
    else {
        alert("not correct extension!");
    }
}

Regards,
Hristo Valyavicharski
Telerik
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to the blog feed now.
Tags
AsyncUpload
Asked by
Thomas E
Top achievements
Rank 1
Answers by
Hristo Valyavicharski
Telerik team
Share this question
or