Description:
Upload a file to the FTP server.
Syntax:
ftp_put(client,remoteFile,localFile)
Note:
External library function (See External Library Guide). If the parameter localFile is a relative path, it is relative to the path to the current dfx file.
Option:
@f |
Overwrite the local namesake file |
Parameter:
client |
An FTP client object |
remoteFile |
A remote file |
localFile |
A local file |
Example:
|
A |
|
1 |
=ftp_open("192.168.75.1":21,"Administrator","admin") |
|
2 |
=ftp_cd(A1,"/WorkingDirectory") |
|
3 |
=ftp_put(A1,"Records_Upload.docx","G:/Records.docx") |
Upload a file to the FTP server. |
4 |
>ftp_close(A1) |
|
Related function: