Invalid Argument when uploading to space using preSignedUrl
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?