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

OnError does not fire in Chrome and Firefox

0 Answers 50 Views
Upload
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Samir
Top achievements
Rank 1
Samir asked on 06 Mar 2012, 12:48 AM
Dear Telerik support,

While using the Telerik MVC Upload extension I had a logic in my action method if not met, then I need to generate a server error and return to the Upload JavaScript OnError method to warn the user.

But, although I am throwing an exception, Chrome and Firefox not detecting that exception as an error and they fire the OnSuccess JavaScript event instead. IE9 works fine.

Chrome : v 17.0.963.56 m
Firefox : v 10.0.2
IE : v 9

That could be a bug.

I am attaching a project which present that issue, you need to go to /home/test and then upload any file and check that the OnError is not fired when using Chrome or Firefox. I also found that for Chrome, it could fire the OnError the first time but it fails to do so if you try to upload for multiple times.

Please note that the attached file is of type .rar but I changed the extension to .zip as I do not have WinZip.

Regards,
Samir

Tags
Upload
Asked by
Samir
Top achievements
Rank 1
Share this question
or