Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
how can I cancel a file download in progress through the API? thanks.
The override issue in 2.0.6 is fixed now in version 3.0.0.
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
@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.)
Hi there!
If you need more help you can view your support options (expected response time for a 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!