procedure Upload(const SourceFile, DestFile: string; Append: boolean = False; StartPos: Int64 = -1); overload;
procedure Upload(Source: TStream; const DestFile: string; Append: boolean = False; StartPos: Int64 = -1); overload;
Call the Upload method to copy a file from the local machine to the FTP server.
|•||SourceFile - holds the initial path to the file that is being copied.|
|•||Source - holds the source data stream that is being copied.|
|•||DestFile - holds the destination path to copy the file to.|
|•||Append - specifies whether the data will be added to the end of the file or the data of the existing file will be overwritten.|
|•||StartPos - the offset in bytes relative to the beginning of the file that the uploading started at.|
File uploading can occur in active and passive modes (see UsePassive).
The EncryptDataChannel property determines whether the connection will be secured using TLS/SSL protocol.
The UseCompression property determines whether data compression will be used when transferring data.
The response code received during execution of this command request is contained in the ReplyCode property.