Reputation: 1
I would be thankful if someone help me out in solving this issue.
I am using codeigniter framwork for my project. And Want to upload my image into amazon s3 bucket. When i am trying to use the S3.php file & putObjectfile() for uploading I am getting the error as
string(92) "The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256."
Can someone help me out in solving this issue.
Upvotes: 0
Views: 449
Reputation: 3165
Could you please try the following:
$s3Client = S3Client::factory(array('key'=>YOUR_AWS_KEY, 'secret'=>YOUR_AWS_SECRET, 'signature' => 'v4'));
Upvotes: 0