Project

attach-s3

0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
S3 backend module for the Attach gem
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.14
~> 10.0

Runtime

< 2.0, >= 1.0
 Project Readme

Attach S3

This gem adds a backend for using Amazon S3 with Adam Cooke's Attach gem.

Installation

Add this line to your application's Gemfile:

gem 'attach-s3'

Once included and installed, you'll need to run through the install basics on Adam's Attach gem page.

Usage

Create an initializer file at config/initializers/attach.rb and enter the following, setting the correct details:

Attach.backend = Attach::S3::Backend.new(
  access_key: "abc123",
  secret_access_key: "123abc",
  region: "eu-west-1",
  bucket: "my-bucket"
)

Once you've added that, start your Rails server and you should be able to view, upload and delete attachments stored on S3!

To Do

  • Public / private uploads
  • Better error handling
  • Tests