We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
mickedg
9 years agoHelpful | Level 6
swifty dropbox route error incorrect offset
Hi - I'm using Swifty Dropbox to upload individual files to another dropbox using
let dbClient = DropboxClient(accessToken: "xxxxx....."
and the methods
func doUpload(fileName: String)
fun...
mickedg
9 years agoHelpful | Level 6
Thanks Greg! I've lowered the chunk size to 1 MB, could that be the problem? I wanted to do that in order to get a smoother progress view. The files that I'm uploading are typically around 100 - 200 MB. What would be the optimal chunk size from a performance perspective?
Greg-DB
Dropbox Community Moderator
9 years agoYou can use whatever chunk size you want, and the chunk size itself shouldn't cause an incorrect offset error.
There isn't an optimal chunk size in general, as there are various different factors, often app-specific, or even user-specific, that will come in to play to affect this. That being the case, you may want to try a few different ones to see what works best for your app. In general though, the larger the chunk size, the better the performance, as there's less overhead associated with making more separate network requests. The bigger the chunk size though, the more likely any particular is to fail.
There isn't an optimal chunk size in general, as there are various different factors, often app-specific, or even user-specific, that will come in to play to affect this. That being the case, you may want to try a few different ones to see what works best for your app. In general though, the larger the chunk size, the better the performance, as there's less overhead associated with making more separate network requests. The bigger the chunk size though, the more likely any particular is to fail.
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!