File Upload from URL?

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

On 1/12/06, CSN [email protected] 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.