Hi,
I am getting XAmzContentSHA256Mismatch when trying to upload an image via the Spaces API.
Uploading a text/plain works fine, but I am really struggling with image/png.
Using postman, and adding the image in the body as form-data.
Sha256 generated with digest.
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!
I have a similar problem using https://github.com/ctrox/csi-s3, since it states The provided 'x-amz-content-sha256' header does not match what was computed, it seems that the API is not 100% compatible with S3 API.
I’ve found that DigitalOcean Spaces does not like signed payloads, which is the default when using things like the AWS PHP SDK v3.
So as well as setting “endpoint”, also set “signature_version” to “v4-unsigned-body”.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.