XenoGuard Documentation

Upload

Actions » Windows » Network » FTP » File » Upload 

The action Upload transfers a file from a local computer to a remote server via File Transfer Protocol (FTP).


[-] Hide
  1. Open the Windows node in the Workspace Explorer.
  2. Open the Network node.
  3. In the FTP node, select the File node.
  4. In the File node, select the Upload action.

Parameters:

The action has the following input parameters:


name Description
Server Address
The host name or IP address of the FTP server.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
User
The name of the user in the FTP server.

Allowed Context Scopes
[Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Password
The password of the user in the FTP server.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Protocol Type
The type of protocol to use for uploading the files.

Accepted Protocols: File Transfer Protocol (FTP) and Secure File Transfer Protocol (SFTP)

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]
Local Path Name
The path name of the local file to be uploaded.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]

Remote Path Name
The destination path name of the remote file.

Allowed Context Scopes
 [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter, Enum]

Results:

The action returns the following results:


name
description
Local Path Name
The path name of the uploaded local file.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter]
Remote Path Name
The destination path name of the uploaded file.

Allowed Context Scopes [Fixed, Local, Global]
Allowed Context Types [Variable, Parameter]

Example 1 (Upload multiple files via FTP):

This example fetches the files from a local storage folder and creates the needed remote path for each file to be uploaded. The remote path was created by putting together the values of the remote directory and the file name with Concatenate. Access to the FTP server is then validated and starts to upload each file by iterating through the list of retrieved files. When uploading is successful, a notice is displayed via Message Box.


See other FTP File operations:

Download
Move
Delete
Rename
Get Information
Permission