in reply to Uploading files using user::agent

I suspect that you can't - if you think about it, the security implications would be rather serious if a script could automatically start uploading a file...

Tom Melly, tom@tomandlu.co.uk

Replies are listed 'Best First'.
Re^2: Uploading files using user::agent
by Melly (Chaplain) on Sep 26, 2006 at 12:14 UTC

    Err, just to clarify, by "a script" I mean "a script on the webserver"...

    If you want to upload a file to a server that you have, say, ftp access to, then it should be fairly straightforward. You should also be able to write a script that uploads a file to a website provided that you are running the script on your machine, not the website (using mechanise?)

    What you cannot do is write a script, place it on a server, and have that script automatically upload a file when someone accesses it.

    Tom Melly, tom@tomandlu.co.uk