Skip to main content
Skip table of contents

SFTP Upload

Input

✳️ Any (string)

Ouptut

✳️ Any (JSON) (Passthrough)

Summary

This action allows you to upload an SFTP file to a remote SFTP server.

The contents of the file should be passed in as a pipeline variable and in a string-like format.

Properties

Name

Type

Templatable

Notes

Upload Data

Text

(tick)

The contents of the file to write. It is recommended to enter a template expression that evaluates to a string (such as the output from the Convert to CSV action). If an object (such as an array or JSON object) is passed in, it will be converted to a string first.

Server Name / IP

Text

(error)

The hostname or IP address of the server to connect to. If a hostname is used, the hostname must be resolvable via public DNS.

Port

Number

(error)

The port number. The default SFTP port is 22, if you are unsure, use that.

Username

Text

(error)

The username to authenticate with.

Password

Text

(error)

The password to authenticate with.

Host Key

Text

(error)

Optional. If specified, the host key will be checked against this value. If they do not match, the connection will be rejected and the action will fail.

Host key should be in the following format:

D4059F50224D90D66F09C4405E90F09CEADECF7C32592DFA9DE5F8A7A6BAB6A2E4E45054A8AC01852E6348C259E11D72869B39

Fingerprint

Text

(error)

Optional. If specified, the host fingerprint will be checked against this value. If they do not match, the connection will be rejected and the action will fail.

Host fingerprint should be in the following format:

33EF33EC30FD9AEA24666E0CCD161DC8

File Path

Text

(tick)

The path of the file to write. Depends on server requirements. Some servers require an absolute path that starts with “/”, others accept relative paths or just filenames. Tip: Use a template expression to create a date-based or unique filename.

Overwrite Existing Files

Checkbox

(error)

Whether or not to overwrite a file if one by the same name already exists. May fail depending on the permissions set up on the SFTP server.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.