Rails 4 - Remote upload image

I have a bookmark controller.

My new.html.erb file has an input field called thumbnail url

So if someone fill that field with valid image url like
http://example.com/image1.jpg, then I would like to remote upload that
image to my server.

Can someone tell me whats the easiest way to do this?

Did you try paperclip …?? It seems to be pretty straightforward to
configure and use.
You can then configure your server to do a get request on the resource
store it on your choice of storage

Agreed with Vineeth B S, although it could become a bit difficult to do
you might want to have a look at copyright issues.

But to accomplish, first install paperclip,
then have a look at this post:


good luck

El lunes, 10 de marzo de 2014 01:09:24 UTC+1, Giri escribió:

Thankyou guys. I’m using paperclip now and it works fine.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs