Need to see if your shared folder is taking up space on your dropbox 👨💻? Find out how to check here.
Forum Discussion
Rephoto
3 years agoHelpful | Level 5
concurrent upload in chunks
Hi, I have done concurrent upload in chunks. My code is fine, and doesn't have any errors. But when I download them, I can't open them My code : My file has been uploaded to dropbox: A...
Greg-DB
Dropbox Community Moderator
3 years agoCan you clarify what you mean when you say "code is fine, and doesn't have any errors"? How have you verified that the code is uploading the correct data?
For instance, I don't see in this code where you're using "memStream", so it doesn't look like you're sending the actual file data.
Refer to the UploadSessionAppendV2Async documentation for information on the parameters it takes and how to use it.
Note that Dropbox will only save the exact bytes you send, so as verification I suggest comparing comparing the original file with the file uploaded on Dropbox to see if they differ. For example, you can take a hash of both files and see if the hashes match.
Rephoto
3 years agoHelpful | Level 5
I tried it and my file was corrupted. Can I just do UploadSessionAppendV2Async sequentially?
- Greg-DB3 years ago
Dropbox Community Moderator
Yes, the UploadSessionAppendV2Async method supports both "concurrent" and "sequential" upload session types. Which one you use is up to you, but in either case you'll need to make sure you're sending the correct data at the correct offsets.
- Rephoto3 years agoHelpful | Level 5
I used "concurrent" and my file was uploaded at the correct size. But it cannot be opened and used
And this is when I do the upload with "sequential", it can be opened
Can you tell me why this is? Thanks
- Greg-DB3 years ago
Dropbox Community Moderator
From that description, it sounds like the code you're using for the "concurrent" type is sending the wrong pieces of data and/or sending the data with the wrong offsets. You'll need to debug the code you've written for that to determine why it's doing so and how to correct it.
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!