Question

DigitalOcean spaces presigned url upload accessdenied

Posted January 4, 2021 405 views
DigitalOcean Spaces

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.

Submit an answer

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