title: The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256
body: <p>I want to upload images using php to the S3 bucket.</p>
  
  <p>But I keep getting this error</p>
  
  <pre><code> The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256
  </code></pre>
  
  <p>I have tried to find a solution for this issue. but all solutions suggest using  "AWS SDK".</p>
  
  <p>I m aware that I have to set the signature to Version 4 and change the endpoint since my bucket is in Frankfurt. </p>
  
  <p>But I don't know how to customize the class I'm using for uploading.</p>
  
  <blockquote>
    <p><a href="https://github.com/tpyo/amazon-s3-php-class/blob/master/S3.php" rel="nofollow">https://github.com/tpyo/amazon-s3-php-class/blob/master/S3.php</a></p>
  </blockquote>