I've tried a number of different methods following examples from this website and other sources but I am hitting a brick wall. After failing to get this working after over a month of daily trying different things I have narrowed it down to the following using the latest version of the AWS SDK for aws-php-sdk-2.7.1. You think it would work right? What I am attempting to do is allow users to edit a web page using javascript, capture the markup in a Div and PUT it to a bucket using a signed URL on Amazon S3. I'm getting an error that my signature method is incorrect. Am I under the wrong conclusion that the SDK is supposed to do this work for me or am I doing something wrong. My Key and Password are working fine using JAVA with PUT yet I need a solution that works on the client side. Other schemes without the SDK used other means to sign the URL but I could not get those to work here either… I could really use some help. Thank you.
This is where I am currently.
My Cors on the bucket: ////////////////////////////////////////////////////////////
<?xml version="1.0" encoding="UTF-8"?>
<CORSConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
<CORSRule>
<AllowedOrigin>*</AllowedOrigin>
<AllowedOrigin>*:8443</AllowedOrigin>
<AllowedMethod>GET</AllowedMethod>
<AllowedMethod>PUT</AllowedMethod>
<AllowedMethod>POST</AllowedMethod>
<AllowedMethod>DELETE</AllowedMethod>
<MaxAgeSeconds>3000</MaxAgeSeconds>
<AllowedHeader>*</AllowedHeader>
</CORSRule>
</CORSConfiguration>