procedure UploadFromStream(Source: TStream; const DestinationName: string; Overwrite: boolean; FileOffset: Int64 = 0);
Description
Call the UploadFromStream 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 the control is returned immediately and you can see the result of the operation execution by handling the OnSuccess and OnError events.
Parameters:
• | Source - holds the source data stream 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