Forum: Ruby on Rails Newbie: Saving file from a URL into DB

Announcement (2017-05-07): is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see and for other Rails- und Ruby-related community platforms.
Chris P. (Guest)
on 2006-03-23 17:46
Hi all,

I'm just starting to learn RoR, and would like to ask a question.
I know that we can 'upload' file from local machine and save it to a
database. Now, say I have a photo which I store in other website (for
example Flickr).  This photo obviously has a URL pointing to it, e.g.
How can I 'save' this photo/file into my RoR application's database ?

Thanks a lot for your help,
Tim C. (Guest)
on 2006-03-23 18:23
(Received via mailing list)
Have you looked at file upload code and considered if you can hack it to
take input from a url instead of from the local file store?

Tim C.
This topic is locked and can not be replied to.