procedure UploadFile(const Source, Destination: string; Overwrite: Boolean; FileOffset: Int64 = 0);

 

Description

Call the UploadFile method to copy a file from the local machine to the remote one.

To create a resulting file on the server with the required attributes (for example, the attributes should correspond to the ones that the local file has) process the OnSetRemoteFileAttributes event.

If the NonBlocking property is set to True, then control is returned at once and you can learn the result of the operation execution by handling the OnSuccess and OnError events.

 

Parameters:

Source - holds the initial path to the file that is being copied.
Destination - holds the destination path to copy the file to.
Overwrite - specifies whether to overwrite the file with the same name if it exists.
FileOffset - the offset in bytes relative to the beginning of the file that the uploading started at.

 

See Also

OnError

OnSuccess

OnSetRemoteFileAttributes

 

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