We’re Still Here to Help (Even Over the Holidays!) - find out more here.
Forum Discussion
Christian T.16
10 years agoNew member | Level 1
parsing upload session finish error
Can you provide an example of how to parse an upload session finish error. Here's what I have but none of these cases are triggered. I do get Error but no further details. Thanks.
...
Greg-DB
Dropbox Community Moderator
10 years agoYou should only upload one chunkLength's worth of data with each call. The following line seems to indicate that you're uploading much more than that for each though:
range = NSMakeRange(Int(startPosition), (data.length)-Int(startPosition))
I.e., the end of the range should probably be something like startPosition + chunkLength.
Anyway, each of the three calls have the ability to take a chunk of data, but it's not required that you do supply data to each. You just need to make sure you upload all of the chunks in order.
Also, it looks like you're still not checking the response on uploadSessionAppend. You should implement the .response callback on that just like the other calls.
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!