I am using a PHP class for Amazon S3 and CloudFront - [Link](https://github.com/tpyo/amazon-s3-php-class). 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.