update to use AWS Signature Version 4
this is a rewrite of the form helper to implement the current AWS Signature version 4 method of signing the policy.
I'd love to see this merged into s3_direct_upload gem. New buckets only work with v4 policy.
Seems like this would only work with us-east-1? What about other regions?
I am not an expert at s3, but this part seems hardcoded just for one region, shouldn't it match all the new ones or something?
https://github.com/waynehoover/s3_direct_upload/pull/174/files#diff-98fcf18bb8f0556479337cf71e97dc1fR35
It's how Amazon decided to name their servers. Have a look at their site (scroll down to Amazon Simple Storage Service) and see how the region name and endpoints are related.
The code you pointed out just follows this (weird) rule.
Thanks for clarifying that @lenart, I just checked out Matt's fork and can verify that this works. Would be nice if this was merged after so many months, or if a fork could be made to carry on the awesome direct_s3 gem's functionality.
I think alot of people are using this in forks. I'd like to see a solution for this problem merged.
This shouldn't break any existing apps right?
I can't see that this has been implemented yet?