procedure UploadWithUniqueName(const SourceFile: string; StartPos: Int64 = -1); overload;

procedure UploadWithUniqueName(Source: TStream; StartPos: Int64 = -1); overload;

 

Description

Call the UploadWithUniqueName method to copy a file from the local machine to the FTP server, where resultant file is to be created in the current directory under a name unique to that directory.

 

Parameters:

SourceFile - holds the initial path to the file that is being copied.
Source - holds the source data stream that is being copied.
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.

 

See Also

AfterUploadFile

BeforeUploadFile

Dowload

EncryptDataChannel

UseCompression

Upload

SecureBridge Components, Copyright © 2007-2024 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support