I\'m trying to upload a local file to a S3 presigned URL. It should be really straight forward, but looks like I\'m missing something.
http://docs.aws.amazon.com/Ama
You can't simply PUT
a file on S3. Use the write API to do that:
s3_object.write(:file => "local-file.zip")
What about using PresignedPost
form = bucket.presigned_post(:key => "photos/${filename}")
form.url.to_s # => "https://mybucket.s3.amazonaws.com/"
form.fields # => { "AWSAccessKeyId" => "...", ... }
form.url # your signed url