Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Simplest solution for uploading images to cloud service [closed]

What is the simplest way to allow people to upload an image to a cloud server (in a Rails 3 app)? I want to include an "upload image" button in the form, and store the address in my model. I'd also like to be able to constrain the file size.

like image 595
Kevin K Avatar asked Oct 24 '12 17:10

Kevin K


2 Answers

I recommend attachinary and the cloudinary service:

https://github.com/assembler/attachinary

It's a huge time saver to not need to mess around with imagemagick. Cloudinary is an amazing service that resizes images on the fly. Attachinary comes with great integration to jquery upload widgets too.

like image 170
Karl Baum Avatar answered Oct 18 '22 02:10

Karl Baum


Using the paperclip gem for rails:

Here is a nice tutorial: Uploading Files to S3 in Ruby with Paperclip

like image 44
felipeclopes Avatar answered Oct 18 '22 00:10

felipeclopes