Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Christian T.16
10 years agoNew member | Level 1
swifty dropbox download cancel
how can I cancel a file download in progress through the API? thanks.
Jiho P.
9 years agoExplorer | Level 3
Hi, adding to an old thread, but is this implemented for Objective C Library?
When I try to use cancel(), the app crashes with:
Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'You must override cancel in a subclass'
Thanks!
Greg-DB
Dropbox Community Moderator
9 years agoHi Jiho, yes, this is available in the Objective-C SDK, but that's a known issue in version 2.0.6 in particular. You can use 2.0.5 as a workaround for now.
- Jiho P.9 years agoExplorer | Level 3
Okay, that worked for now.
- Greg-DB9 years ago
Dropbox Community Moderator
The override issue in 2.0.6 is fixed now in version 3.0.0.
- DS67 years agoExplorer | Level 4
Do we need to explicitly cancel the upload requests, or is it enough to release the objects by setting it to nil? Example, I have
dbUploadTask = client?.files.uploadSessionStart(input: data) dbUploadTask?.response(completionHandler: { [weak self] (result, error) in }Then is it safe to set the object to nil while upload is in progress? Or is it necessary to call cancel() before setting it to nil?
dbUploadTask = nil
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!