Upload and Verify SFTP File

Network & cloud · nd-sftp-upload-file · nodestly-sftp 1.0.0

Uploads a file to a temporary remote name, confirms the uploaded bytes with SHA-256, and publishes the file.

Inputs and outputs

  • session — SFTP session (text, sftp.pinned-session). Required connector.
  • file — File (text, filesystem.file). Required connector.
  • remotePath — Remote file path (text). Connector or setting.
  • overwrite — Replace existing file (boolean). Connector or setting.
  • fire — Optional start signal (fire).
  • bytes — Bytes (number).
  • sha256 — SHA-256 (text).
  • fire — Continuation after success (fire).

Settings

  • remotePath (text). Default empty.
  • overwrite (checkbox). Default false.

A connected value takes precedence over the saved setting, including an empty string or false.

Connect a normal local file and choose a relative remote filename within the connected root. The folder must exist. At most 64 MiB can be uploaded. The block reads the staged remote file back and compares its SHA-256 to the source before committing it. Replacement is disabled by default. Replacing an existing regular remote file requires the server’s OpenSSH POSIX rename extension. A disconnected server can retain an incomplete .nodestly-*.part file.

Requirements and errors

Install the SFTP component through Nodestly’s workflow requirements. Use a server that accepts SFTP over SSH for this account. If a file, credential, or session has expired, reconnect it in the same run. Correct the path, permissions, fingerprint, or credential indicated by the error. Failure stops execution without output or Fire.