RubyFlow The Ruby and Rails community linklog

Generate AWS - S3 Policy and Signature

S3 accepts uploads via specially-crafted and pre-authorized HTML POST Form.

A simple gem will help you create two values: Signature and Policy - https://github.com/vinhnglx/s3-authorize

This gem is very useful when working with AngularJS file upload

Comments

The aws-sdk gem already supports generating fields for direct S3 upload: http://docs.aws.amazon.com/sdkforruby/api/Aws/S3/Bucket.html#presigned_post-instance_method

Post a comment

You can use basic HTML markup (e.g. <a>) or Markdown.

As you are not logged in, you will be
directed via GitHub to signup or sign in