A short video where I explain how you can access an s3 bucket by using a pre-signed url to upload a file.
The example provided is based on python and use boto3 SDK.
Errors:
If you get this error:
<Error>
<Code>SignatureDoesNotMatch</Code>
<Message>The request signature we calculated does not match the signature you provided. Check your key and signing method.</Message>
</Error>
Make sure to specify the correct signature version when interacting with s3, it should be s3v4.
A second error that you can get is when you don’t specify the correct order of your fields, then you will get this error:
<Error>
<Code>InvalidArgument</Code>
<Message>Bucket POST must contain a field named ‘key’. If it is specified, please check the order of the fields.</Message>
…
</Error>
If you find it helpful don’t forget to hit 🥊 that like button.