File Upload from URL?


#1

Rather than having a file upload field, I want to have
a text field where a URL can be specified, then get
the file from the URL and treat it like a typical file
upload (presumably saving it in /tmp). Anybody know
how to do this?

Thanks
csn


Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


#2

On 1/12/06, CSN removed_email_address@domain.invalid wrote:

Rather than having a file upload field, I want to have
a text field where a URL can be specified, then get
the file from the URL and treat it like a typical file
upload (presumably saving it in /tmp). Anybody know
how to do this?

http://www.ruby-doc.org/stdlib/

Look at the entry for net/http. It gives an example of this.