Project

s3-upload

0.0
No commit activity in last 3 years
No release in over 3 years
S3-Upload is a simple helper for creating a signed S3 upload policy, useful for allowing untrusted 3rd parties to upload to your bucket. Through, for example, a HTML form.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

> 1.0.0
~> 0.4.0
 Project Readme

S3-Upload

S3-Upload is a simple helper for creating a signed S3 upload policy, useful for allowing untrusted 3rd parties to upload to your bucket. Through, for example, a HTML form.

Setup

$ gem install s3-upload

require 's3-upload'
S3Upload.access_key_id = ...
S3Upload.secret_access_key = ...
S3Upload.bucket = 'my-upload-bucket'
S3Upload.default_key_prefix = 'uploads/'

Example usage

upload = S3Upload.new(
  :key_prefix => Time.now.to_s,
  :expiration_date => 1.year.from_now # Default is 1 hour
)
render :json => upload

Author

Created by Niklas Holmgren (niklas@sutajio.se) and released under the MIT license.