SendFTPFile()
Syntax
Result = SendFTPFile(#Ftp, Filename$, RemoteFilename$ [, Asynchronous])Description
Sends a file to a FTP server.
Parameters
#Ftp The connection to use. Filename$ The name of the file to send. If the filename does not include a full path, it is interpreted relative to the current directory. RemoteFilename$ The remote filename. It has to be in the current ftp directory (see GetFTPDirectory() and SetFTPDirectory()). Asynchronous (optional) If set to a #True, the transfer will be made in the background. The default is to block the program until the file has been fully sent. The progress of an asynchronous transfer can be received with the FTPProgress() command and it can be aborted using the AbortFTPFile() command.
Return value
Returns nonzero if the file was uploaded correctly, or the asynchronous transfer was initialized correctly. On failure, the return-value is zero.
Remarks
Only one file can be downloaded or uploaded (see ReceiveFTPFile()) in the background at once.
See Also
ReceiveFTPFile(), SetFTPDirectory(), GetFTPDirectory(), FTPProgress(), AbortFTPFile()
Supported OS
All