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.
12 Replies
- 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
- Greg-DB7 years ago
Dropbox Community Moderator
DS6 If you want to cancel the request, you should explicitly call `cancel`. (I can't guarantee that `nil`ing the object will be sufficient.)
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!