Question

Multipart upload failing on CompleteMultipartUpload with InvalidPart when retrying chunk upload

I’m using https://github.com/martinambrus/s3-multipart-upload-javascript-browser to upload large files in chunks to DigitalOcean Spaces. It works well but I was trying to implement retry policy in case one of the chunks fails to upload (due to a connection error). The retry itself works well and DOS will accept the upload but then, upon the final CompleteMultipartUpload request, I’ll always get an InvalidPart error back. (https://github.com/martinambrus/s3-multipart-upload-javascript-browser/blob/master/index.php#L172-L179)

The same procedure works without any changes when there is no retry error. I can’t get more information from the output that I could use to see what’s going on and why can my upload not be finalized.

It also works well with Amazon S3.

Please let me know what we need to do to be compatible with DigitalOcean Spaces.

Thank you! Martin


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

Suddenly we are no longer running into this issue.

I’m asking support if they fixed anything or if we run into the issue randomly.