Skip to content

Using AWS S3 Service with RoR Paperclip

by dkberktas on July 15th, 2010

Continuing from the last post, you might want to use AWS S3 for hosting the uploaded files. Actually the steps are pretty easy as described in the following links:

ps. If you are having an error like this

ArgumentError: wrong number of arguments (5 for 4)

this is probably because you have both the aws-s3 gem and right_aws, just change the environment.rb
as in the following link

http://stackoverflow.com/questions/1550708/rails-paperclip-conflict-between-aws-s3-gem-and-right-aws-gem-how-to-solve

ps2. If you are planning to deploy to heroku add the gem to .gems file, or you will get an error like this “App failed to start” — your application is missing the following gems:…

From → Uncategorized

One Comment
  1. Igor Alexandrov permalink

    Not long ago Amazon released official AWS SDK for Ruby (https://github.com/amazonwebservices/aws-sdk-for-ruby). It works pretty well with S3, supports American, European and Japanese S3 instances from the box and well maintained.

    I have created a storage module for Paperclip called paperclip-aws (https://github.com/igor-alexandrov/paperclip-aws) that works with AWS SDK.

    Feel free to use it. I hope that it will help.

Leave a Reply

Note: XHTML is allowed. Your email address will never be published.

Subscribe to this comment feed via RSS