Report this

What is the reason for this report?

Invalid Argument when uploading to space using preSignedUrl

Posted on July 7, 2020

I’m following this tutorial : https://www.digitalocean.com/docs/spaces/resources/s3-sdk-examples/. to upload images to space from browser. Upload directly using s3.putObject works fine. However I’d like to use the preSingedUrl instead, but I keep getting InvalidArgument error. How do I debug this?



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!

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.