FTPPut method
FTPPut(Server$, LocalPath$, RemotePath$, File$, Flags)
FTPPut
The FTPPut(Server, LocalPath, RemotePath, File, Flags) method initiates an FTP transfer from the client to the specified server.
The user is always prompted whether they want to allow the transfer. If they decline the call will fail. The user may also be prompted for a user name and password if the FTP server requires authentication. By default the user name and password for the KCML session is used. Flags should be set to one of the values from the FTP transfer type enumeration according to whether the file is binary or text.
File$ = "report.pdf" REM Get location of user's 'My Documents' directory Client.GetSpecialFolderPath(_CSIDL_PERSONAL, BYREF MyDocuments$) REM We will upload to a directory called 'reports' in the FTP default directory Client.FTPPut("my_ftp_server", MyDocuments$, "reports", File$, _FTP_TRANSFER_TYPE_BINARY)