Hello. I am following the s3 examples guide for digital ocean spaces here :https://www.digitalocean.com/docs/spaces/resources/s3-sdk-examples/ and have just created a presignedurl to upload an object. It seems to be working fine and I have a url to upload the object to, however when I curl -X PUT a file to this url, I am getting the following json response: <?xml version=“1.0” encoding=“UTF-8”?><Error><Code>AccessDenied</Code><RequestId>tx000000000000006cf20aa-005ff38027-2a11b61-nyc3c</RequestId><HostId>2a11b61-nyc3c-nyc3-zg03</HostId></Error>‘Content-Type’ is not recognized as an internal or external command, operable program or batch file. ‘Expires’ is not recognized as an internal or external command, operable program or batch file. ‘Signature’ is not recognized as an internal or external command, operable program or batch file.
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!
Heya,
Just came across this answer and decided to write some general guidelines for anyone who comes across this in the future despite the old question.
The error message you are seeing typically indicates there’s an issue with your permissions setting for that Space or the Access Key provided is not correct.
It’s important to make sure that:
If the issue persists even after checking these details, you might want to regenerate your Spaces access keys from your DigitalOcean Control panel.
For more detailed information, you can review the DigitalOcean documentation here.
Hope that this helps!
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.