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.
Gabriel N.2
10 years agoNew member | Level 1
This seems to me like a huge oversight from your part. When can we expect an api fix as we have a release coming soon? Without a way to cancel a download this SDK is not suitable for displaying a list of thumbnails in a tableview/collectionview without firing a ton of download requests with no way of stopping them when the cells get out of view.
We integrated this api and now we see that we have to remove it.
I propose to either expose the NSURLRequest directly or to use something similar to Apple's Photos api where a request returns an ID, that one can store as the cell's tag or similar, and then provide a function to cancel a request by ID. Then it will all look quite nicely in cellForItemAtIndexPath:
[...]
if cell.tag != 0 {
client?.files.cancelRequest(DropBoxRequestID(cell.tag))
}
cell.tag = Int(client.files.getThumbnail([...])
[...]
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!