Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using ftp with Javascript

Status
Not open for further replies.

zephan

Programmer
Jan 14, 2002
217
A2
Hi !
Is there any method or function in javascript to send a file to an ftp server ? I want to use it to send a file chosen by the <input type=file> and the ftp put command.
 
Only with CGI, I believe. Perhaps some
other server-side languages too.

Play around a bit with sending your
visitor to: ftp://username:password@myftp.com/
 
Thanks, now I know we can't use ftp with javascript neither by vbscript. Perl and Php are supposed to do it.
With perl, if everything's ok, use LWP to GET a file.
Another package is Net::FTP, it's more complexe but you can do more things.

PS:
With permission of forum members
Msg to devnull2: I don't think hearing satanic messages from Windows NT CD's bad, cos my name is not Microsoft and thus I'm not responsible of satanic sprites hidden in NT CD.
Also, I thought this forum was controled. However, since you look helpfull I wont flag you.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top