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.
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.
Using the paperclip gem for rails:
Here is a nice tutorial: Uploading Files to S3 in Ruby with Paperclip
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With