Method FTPClient():put() Professional

Writes a character string into a file on the FTP server.

:put( <cFilename>, <cContents> ) --> lSuccess
The parameter is a character string holding the name of the file to be created on the FTP server. <cFilename> must include the file name plus path information relative to the current directory. Alternatively, the path may be specified as an absolute path.
This is a character string holding the data to be written to <cFilename>.

The method returns .T. (true) when the file could be created on the FTP server, otherwise .F. (false) is returned.


This method uploads a character string from a client computer to an FTP server and stores it in a file on the server. The string may contain textual or binary data. When a connection to the FTP server does not exist, an attempt to establish a connection is made. The string is then transferred to the server and written into the file <cFilename>. An existing file will be overwritten.


If you see anything in the documentation that is not correct, does not match your experience with the particular feature or requires further clarification, please use this form to report a documentation issue.