0

For S3 uploads I use

This works perfectly for a US based S3 bucket. But for EU, this is failing with the following error

The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.

Any idea on how to fix this issue?

user4826347
  • 783
  • 2
  • 11
  • 29
  • It would help tremendously if you posted a [mcve] of your code, showing what authorization mechanism you are using, etc. – elixenide Jul 22 '18 at 18:05
  • TL;DR: That code is outdated and cannot be used with newer regions. Use the AWS SDK. –  Jul 22 '18 at 18:07
  • @EDCottrell I use the widely used http://undesigned.org.za/2007/10/22/amazon-s3-php-class/ which seems to have a limitation; the solution of which I am looking for – user4826347 Jul 22 '18 at 22:19
  • @user4826347 Okay, but your question is still incomplete for the same reasons I just explained. Where is *your* code using that class? – elixenide Jul 22 '18 at 23:21
  • For those who wonder if and how I fixed the issue, I added .aws/credential to my machine with AWS Keys and used PHP SDK to create a wrapper. I cannot post the answer as it is marked as duplicate which I doubt... Thanks – user4826347 Jul 25 '18 at 15:30

0 Answers0