Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

SignatureDoesNotMatch - Amazon S3 API

I am using a PHP class for Amazon S3 and CloudFront - Link. But when I try to upload a file into a bucket, I get this error:

[SignatureDoesNotMatch] The request signature we calculated does not match the signature you provided. Check your key and signing method.

How to fix it?

Thanks.

like image 545
Roman Nazarkin Avatar asked Apr 23 '12 13:04

Roman Nazarkin


1 Answers

I had this error with putObject() when specifying a Key starting with slash character (/) - after removing the slash it worked fine.

like image 157
Justin Emery Avatar answered Nov 15 '22 16:11

Justin Emery