See also: http://almosteffortless.com/2008/12/11/easy-upload-via-url-with-paperclip/
Forked from: https://gist.github.com/1502777
The goal was a more generic solution to the one in gist this is forked from. It does not require the addition of any more db columns, as I choose not to store the remote URL.
Currently missing, is validation of the remote URL and error handling. Probably makes sense to just work with ActiveRecord::Errors
Currently, the file upload takes precedence over the the remote url, if a user supplies both. I'm thinking that should probably be an option flag on can_attach_remote_url
.