Skip to content

UploadFile - cFTPTransfer

Uploads the file sLocalFile to RemoteHost and stores it using the filename sRemoteFile

Type: Function
Return Data Type: Integer

Parameters

Parameter Type Description
sLocalFile String The name of the uploaded file
sRemoteFile String The name of the stored file

Syntax

Function UploadFile String sLocalFile String sRemoteFile Returns Integer

Call Example

Get UploadFile sLocalFile sRemoteFile to IntegerVariable

Description

UploadFile uploads the file sLocalFile to RemoteHost and stores it using the filename sRemoteFile. Returns True if successful, False otherwise.

The file is transferred with BufferSize bytes at the time, and the OnTransferStatus event is triggered after each chunk is transferred.

Return Value

Failure (0) or Success (any positive integer value)