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

Abort request for image upload

1 Answer 55 Views
JavaScript SDK
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Dines
Top achievements
Rank 1
Dines asked on 11 Apr 2015, 07:38 AM

The image upload takes long time to upload I want to abort this request, how can I do this I tried req.abort() but I will not work for me.

 

1 Answer, 1 is accepted

Sort by
0
Anton Dobrev
Telerik team
answered on 14 Apr 2015, 03:37 PM
Hi Dines,

The JS SDK of Backend Services currently does not offer a way to cancel the request. You can vote for the feature request in our Feedback portal here. We monitor the progress of these items regularly and prioritize our development accordingly.

May I suggest as a current workaround that you use for uploading files the REST API of Backend Services with jQuery AJAX as shown in this article? Thus you will be able to cancel or set a timeout to the request.

I hope that this helps.

Regards,
Anton Dobrev
Telerik
 
Everlive is now Telerik Backend Services, and is part of the Telerik Platform.
 
Tags
JavaScript SDK
Asked by
Dines
Top achievements
Rank 1
Answers by
Anton Dobrev
Telerik team
Share this question
or