We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
comb
9 years agoExplorer | Level 3
How to cancel the uploading process in API V.2(C-Objective) ?
Hello,
In version API v.1 we have used the folowing APIs:
- (void)restClient:(DBRestClient *)client uploadedFileChunk:(NSString *)uploadId newOffset:(unsigned long long)offset (to send a ...
- 9 years ago
The API v2 Objective-C SDK doesn't have a method like cancelAllRequests to cancel all active requests at once, but I'll be sure to pass this along as a feature request.
When using upload sessions though, since you control how and when each portion is uploaded, you can have your app stop the upload session by stopping further calls.
And in any case, you can cancel an individual upload call (when using upload sessions or not) by calling cancel on the call object itself, like this:
DBUploadTask *req = [client.filesRoutes upload... [req cancel];
(Note that there's a bug with that in 2.0.6, so you may want to use 2.0.5 for now to do this.)
Greg-DB
Dropbox Community Moderator
9 years agoThe API v2 Objective-C SDK doesn't have a method like cancelAllRequests to cancel all active requests at once, but I'll be sure to pass this along as a feature request.
When using upload sessions though, since you control how and when each portion is uploaded, you can have your app stop the upload session by stopping further calls.
And in any case, you can cancel an individual upload call (when using upload sessions or not) by calling cancel on the call object itself, like this:
DBUploadTask *req = [client.filesRoutes upload... [req cancel];
(Note that there's a bug with that in 2.0.6, so you may want to use 2.0.5 for now to do this.)
Greg-DB
Dropbox Community Moderator
9 years agoThe override issue in 2.0.6 is fixed now in version 3.0.0.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
The Dropbox Community team is active from Monday to Friday. We try to respond to you as soon as we can, usually within 2 hours.
If you need more help you can view your support options (expected response time for an email or ticket is 24 hours), or contact us on X, Facebook or Instagram.
For more info on available support options for your Dropbox plan, see this article.
If you found the answer to your question in this Community thread, please 'like' the post to say thanks and to let us know it was useful!