I'm working on a Rails application that uses Shrine to upload files directly to DigitalOcean Spaces using presigned URLs. However, I'm encountering a SignatureDoesNotMatch error during the upload process. I've verified my credentials and ensured that the Content-Type and Content-Disposition headers match between the presigned URL generation and the actual upload request. Despite this, the error persists.
Here's the relevant part of my code for generating the presigned URL:
I'm working on a Rails application that uses Shrine to upload files directly to DigitalOcean Spaces using presigned URLs. However, I'm encountering a SignatureDoesNotMatch error during the upload process. I've verified my credentials and ensured that the
Content-Type
andContent-Disposition
headers match between the presigned URL generation and the actual upload request. Despite this, the error persists.Here's the relevant part of my code for generating the presigned URL:
The presigned URL generated looks like this:
And the error response from DigitalOcean Spaces is:
Here is the curl from postman
Has anyone encountered this issue before or can spot what might be going wrong?