FTPUpload Action

Uploads a file to an FTP Server (synchronous operation initially).

Parameters

Connection – (Required)

The name of the FTP connection that this action will be applied to. This will be the same as the connection specified in the 'FTPConnect' call.

Name – (Required)

Name of the file to be uploaded.

Folder – (Required)

Full path of the file to be uploaded.

Wait – (Required)

Optional parameter to specify whether the execution of the action should wait for the upload to complete (synchronous) or start the upload without waiting (asynchronous). This parameter should be set to one of the Wait constants.

File Already Exists – (Required)

Optional parameter to specify the action to take if the file being uploaded already exists. This parameter should be set to one of the File Already Exists constants.

Examples

The following example creates an FTP connection to the IBMi, changes the folder on the server, uploads a file and disconnects. The example assumes that there is a previously defined ftp connection 'iSeriesFTP'.

FTPConnect (testConnection, Connection=iSeriesFTP;)

FTPChangeFolder (testConnection, /tmp)

FTPUpload (testConnection, test, ZZVAS.SAVF, /tmp/, FTPUploadWait, FTPUploadAbort)

FTPDisconnect (testConnection)

See Also

FTPConnect Action | FTPDisconnect Action | FTPDownload Action| FTPChangeFolder Action | FTPDelete Action | FTPNewFolder Action | FTPNewLibrary Action | FTPNewMember Action | FTPNewPhysicalFile Action | FTPQuote Action | FTPRename Action