Skip to main content

SFTP Upload File

Synopsis

This operator uploads a local file to a SFTP server. This operator is deprecated, please replace it with the new Write SFTP operator.

Description

To upload a local file to a SFTP server, a SFTP connection to this server has to be defined. This requires the server address, port, username and password. It can be either defined under the menu Connections -> Manage Connections or over the edit button next to the connection parameter.

The file to upload is specified either by the local file location parameter or provided by the fil input port. The directory on the remote server is specified over the remote directory parameter. Note, the remote root directory is represented by '//'. If the parameter overwrite is true a file with the same name in the remote directory on the server is overwritten.

Input

fil

The file to upload. This is not mandatory, the location of the file can also be specified by the local file location parameter. File objects can be generated with operators like Open File or Loop Files.

through

Any object you want to pass through the operator.

Output

through

Any object you want to pass through the operator.

Parameters

Connection

The SFTP connection to use. It can be either selected from the dropdown list or a new connection can be created by clicking on the edit button next to the parameter.

Local file location

The location of the local file to upload.

Remote directory

The remote directory on the SFTP server to which the file is uploaded. Note, the remote root directory is represented by '//'

Overwrite

If this parameter is set to true, a file with the same name in the remote directory on the server is overwritten.