SFTP File Trigger
The SFTP File Trigger lists a directory on an SFTP server on an interval and starts one run for each new or modified file that matches your pattern. Use it for partner file drops, nightly exports and report uploads.
Polling starts when you publish the workflow. Changes take effect on the next publish.
Settings
| Name | Required | Default | Description |
|---|---|---|---|
| SFTP connection | Yes* | — | An SFTP connection with the server, login and host key fingerprint. See Connection. |
| Host | Yes* | — | Inline settings, for existing workflows: the SFTP server, for example sftp.example.com. |
| Port | No | 22 | Inline: the SSH port. |
| Host key fingerprint (SHA256) | No | — | Inline: the server's SHA256 host key fingerprint, for example SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8. When set, the connection is refused if the server presents a different key. |
| Username | No | — | Inline: the login. |
| Password | No | — | Inline: a project secret holding the password. |
| Private key (PEM/OpenSSH) | No | — | Inline: a project secret holding a private key, for key-based login. |
| Private key passphrase | No | — | Inline: a project secret holding the key's passphrase, if it has one. |
| Remote Directory | Yes | — | The directory to watch, for example /uploads. Subdirectories are not included. |
| File Pattern | No | All files | One or more patterns, separated by commas, for example *.csv, report-??.xlsx. * matches any characters, ? matches one. Matching ignores case. |
| Download file to storage | No | Off | Copy each file into storage so later steps can read it. |
| Max download size (MB) | No | 50 | Larger files are reported but not downloaded (1–500). |
| Delete remote file after download | No | Off | Shown when downloading is on. Deletes the file from the server after it was stored and its run was started. |
| Ignore files modified in the last (seconds) | No | 0 | Skip files that are still being written. A file is picked up once it hasn't changed for this long (max 86400). |
| Poll Interval (seconds) | No | 60 | How often to check. Raised to your plan's minimum if lower. |
* Select an SFTP connection, or fill in the inline settings (existing workflows).
You need a username plus a password or a private key (or both), from the connection or the inline settings.
Connection
Pick an SFTP connection in SFTP connection. The picker only lists SFTP connections, and New SFTP connection creates one without leaving the editor. Host, port, host key fingerprint, username, password, private key and passphrase all come from the connection. See Database, SFTP, IMAP and SMTP connections.
Sign-in details resolve in the trigger's environment, so each environment can use a different server or login.
Inline settings (legacy)
Workflows created before SFTP connections keep working unchanged. Without an SFTP connection, the trigger uses Host, Port, Host key fingerprint, Username and the secret fields, resolved in the trigger's environment.
A Basic Auth connection selected in an older workflow still works: it supplies the username and password, and the server comes from the inline fields. It is deprecated, so publishing shows a warning (not an error): "'…' is a Basic Auth connection. It still works but is deprecated here: create a Sftp connection instead." Switch the trigger to an SFTP connection when you can.
In the workflow JSON the connection is stored as connectionId. Steps saved with the older connection key still
work.
:::tip Set the host key fingerprint
Without a fingerprint, Blokkio accepts whatever key the server presents. Ask your provider for the SHA256
fingerprint, or run ssh-keyscan sftp.example.com | ssh-keygen -lf - and copy the SHA256:… value.
:::
How it works
- First poll. The trigger fires for files that appear or change since you published it; files that were already there don't start runs. If the first checks fail (for example the server wasn't reachable), the first successful check still starts runs for files changed since publishing, up to the last 24 hours and the newest 50 files.
- Republishing. Publishing again without changing the trigger keeps its place. If you change its settings or connection (or turn the workflow off and on), it starts again from the new publish time.
- New and modified files. Files are tracked by their modification time. A file with a newer modification time than the last one seen starts a run, so a file that is replaced or changed triggers again. Files that share the same timestamp are never skipped.
- Batching. Each check starts runs for up to 50 files, oldest first. The rest are picked up by the next checks.
- No duplicates. A file is identified by its path, modification time and size. Blokkio remembers handled files (for 30 days), so a repeated check after a crash doesn't start a second run for the same version of a file.
- Deleting. With Delete remote file after download on, only files that were actually stored are deleted (never a file that was skipped for size).
Poll interval
Poll Interval (seconds) defaults to 60. Your plan sets the minimum, from 5 minutes on the smallest plan down to 15 seconds on the largest (see
Plans and limits).
A lower value shows a warning in the editor, and the trigger checks at your plan's minimum instead. See Plan limits.
Trigger output
{
"name": "orders-2026-11-11.csv",
"path": "/uploads/orders-2026-11-11.csv",
"directory": "/uploads",
"size": 18342,
"modifiedAt": "2026-11-11T06:00:04.0000000+00:00",
"file": {
"providerId": "11111111-1111-1111-1111-111111111111",
"fileId": "b8e2c7a1-4f0d-4c3e-9a61-2d7e5f8b9c04",
"fileName": "orders-2026-11-11.csv",
"contentType": "text/csv"
}
}
| Field | Description |
|---|---|
name | The file name. |
path | The full remote path. |
directory | The watched directory. |
size | Size in bytes. |
modifiedAt | Last modification time in UTC (ISO 8601). |
file | A file reference to the stored copy. null when Download file to storage is off. |
skipped | Only present when the file was too large to download. file is then null. |
Downloaded files are kept in the project's temporary storage (see Storage). Pass file
to steps that accept files, for example Parse CSV:
{{ $trigger.file }}
{{ $trigger.name.replace('.csv', '') }}
{{ $nodes['SFTP File Trigger'].size > 0 }}
Testing
Click Test run in the editor header and pick the SFTP File Trigger to start a run from the last saved draft.
A test run doesn't connect to the server. To test later steps with a file's details, paste a sample object in the
dialog's Trigger data box (same shape as the trigger output); it becomes $trigger and the
trigger step's output, so {{ $trigger.name }} and $nodes['SFTP File Trigger'].name work as in a real run. To
reuse the same sample in every test run, you can instead pin it on the
trigger's output; pinned data is only used in test runs.