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

Cancel Image uploading is not actually cancel the AJAX request send to server, which cause apllication hanges

1 Answer 33 Views
AsyncUpload
This is a migrated thread and some comments may be shown as answers.
Pawan
Top achievements
Rank 1
Pawan asked on 05 Sep 2013, 10:00 AM
Hi,

I am using radasyncupload cutomhttphandler in my application, but it hangs the application some times while uploading (Even not hits on server side). To handle this scenario I have used a js timer to cancel the uploading after a specific time on clicking cancel button from js but Cancel Image uploading is not actually cancelling the AJAX request send to server, which cause application hangs. For terminating the request we also clicks on remove button it Aborts the request but Initiator is in pending state(please refer attached screen shot) and site still in hanged state. After 5-6 minute it automatically timeout and site is again responsive.

Is there any option set the timeout for this uploader control only? We cannot set AutoPostbackTimeOut of scripmanager and Httpruntime timeout in config.
Or any option to completely terminate the request sends to the server for uploading.


Please find attached screen shot for referring pending request after cancelling and removing the request.

1 Answer, 1 is accepted

Sort by
0
Genady Sergeev
Telerik team
answered on 09 Sep 2013, 02:13 PM
Hi Pawan,

In general clicking on the cancel button cancels the request to the server with the notable exception of uploading files in IE6/7/8/9. In those versions of IE it is not possible to cancel the upload once sent to the server.

On a side note what do you do in your custom handler so that it hangs the server? Perhaps there is a way to optimize that functionality so that it doesn't cause freezes.

Regards,
Genady Sergeev
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
Pawan
Top achievements
Rank 1
Answers by
Genady Sergeev
Telerik team
Share this question
or