We are aware of the issue with the badge emails resending to everyone, we apologise for the inconvenience - learn more here.
Forum Discussion
comb
8 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 larcge file) [[self restClient] cancelAllRequests] (to cancel the uploading process)
In version API v.2 wa are using the folowing APIs:
uploadSession (to send a large file)
how to cancel the uploading process in the version API v.2?
Thanks in advance!
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-DBDropbox Staff
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-DBDropbox Staff
The 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.
5,875 PostsLatest Activity: 2 months agoIf 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 or Facebook.
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!