Method FTPClient2():put() Foundation
Uploads file content.
:put( <cRemoteFile>, <cData> ) --> lSuccess
.T. (true) if the upload is successful, .F. (false) otherwise.
Uploads file content into a remote file. The operation creates a new file or overwrites an existing file on the FTP server.
For large data, consider using the :putFile() method instead, which reads and transfers the data in chunks, requiring less memory during the operation.
In case of failure, detailed error information can be obtained using the :getLastError() and :getLastMessage() methods.
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.