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?
Giri
March 10, 2014, 12:51pm
2
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
and
store it on your choice of storage
Giri
March 10, 2014, 1:10pm
3
Agreed with Vineeth B S, although it could become a bit difficult to do
and
you might want to have a look at copyright issues.
But to accomplish, first install paperclip,
GitHub - thoughtbot/paperclip: Easy file attachment management for ActiveRecord ,
then have a look at this post:
good luck
El lunes, 10 de marzo de 2014 01:09:24 UTC+1, Giri escribió:
Giri
March 10, 2014, 4:47pm
4
Thankyou guys. I’m using paperclip now and it works fine.