You might see that the Dropbox Community team have been busy working on some major updates to the Community itself! So, here is some info on what’s changed, what’s staying the same and what you can expect from the Dropbox Community overall.
Forum Discussion
Sayak B.
9 years agoExplorer | Level 3
Dropbox API in C# how to reuse the session id of bulk file upload in case file could not be uploaded by any issue.
In case of uploading big file of more than 100 mb, if by some case the internet connection get dropped then how it will be possible to upload the same file from the chunk it has been failed to upload...
Greg-DB
Dropbox Staff
Thanks! The incorrect_offset error indicates that the server is expecting a different "offset" value (how far along in the file you are in the upload session) than the app is submitting. You can find more information on that in the documentation here:
You can get the expected offset value from UploadSessionOffsetError.CorrectOffset:
You'll want to add some logic to deal with this error (especially since your app will be running from an unreliable connection.)
Sayak B.
9 years agoExplorer | Level 3
Finally I resolved the "incorrect_offset" issue by catching this exception and uploading the next slice. But the thing is after successful upload the file is corrupt. i.e. I am uploading zip file. that is corrupt and can not unzip by windows. What I am doing wrong and why it is happening ? can you please suggest what should be done ?
- Greg-DB9 years agoDropbox Staff
It sounds like there may be a bug in your uploading logic. It's hard to say what it may be offhand, so I recommend adding some logging to your upload code to see where the issue may be and determine where the incorrect data is being sent up, or if you're sending the data out of order or something.
Have you tried uploading via the sample I linked to though? Does that work correctly for you?
- 0ylanmorisson8 years agoExplorer | Level 3
I'm facing the same issue here. How can I get the correct offset by using UploadSessionOffsetError.CorrectOffset ? Can you pls show me some sample code?
How can I pass the correct offset as the right cursor to the following method?
await client.Files.UploadSessionAppendV2Async(cursor, body: memStream);
- Greg-DB8 years agoDropbox Staff
0ylanmorisson It looks like you opened another thread for this, so I'll follow up there.
About Dropbox API Support & Feedback
Find help with the Dropbox API from other developers.
5,877 PostsLatest Activity: 12 months agoIf 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 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!