Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- enter code$s3Client = new AwsS3S3Client([
- 'region' => {my region name} ,
- 'version' => 'latest',
- 'credentials' => array(
- 'key' => {my key} ,
- 'secret' => {my secret},
- )
- ]);
- $result = $s3Client->putObject([
- 'Bucket' => {my bucket name},
- 'Key' => 'index.html',
- 'body' => {file content},
- ]);
- [status code] 403 [reason phrase] Forbidden SignatureDoesNotMatch (client): The request signature we calculated does not match the signature you provided. Check your key and signing method.
Add Comment
Please, Sign In to add comment