Helma logo
helma.org » Home > Stories > FtpClient.putFile()

FtpClient.putFile()

Transfers a file from the local file system to the remote server.

Returns true if the transmission was successful, otherwise false.

Syntax
FtpObject.putFile(LocalFile, RemoteFile)

Example
var ftp = new FtpClient("ftp.host.dom");
ftp.login("user", "pass");
if (ftp.putFile("testfile"))
   res.write("File transferred successfully.");
else
   res.write("Transfer error.");

File transferred successfully.


... comment


Page last modified on 2002-07-16 10:04 by tobi