When Files Change
When Files Change starts a flow when files of one of your
file stores are added, rewritten or deleted. Use it to
process an invoice the moment it lands, to read an email attachment into a
table, or to tell a team a contract was replaced. You find it on the node
picker’s Triggers — start the flow shelf.
The node has a single webhook handle, which connects into Start’s trigger handle. Like every inbound trigger it is not one of the run’s steps: it decides when a run starts and what the start data is, and the run itself begins at Start.
What starts it
Section titled “What starts it”Every file Publicus writes to the store can start it, wherever it came from: the Files page, a portal upload, an email’s attachments, the AI builder, or a flow’s file nodes. A file put in the bucket some other way does not.
- A file written under a key the store does not hold yet is added.
- A file written again under a key the store already holds is rewritten: the store keeps the earlier version, and the run gets the new one.
- A file deleted on the Files page, by a flow, or by the store’s retention is deleted. Deletes are off by default.
Set Only keys starting with to watch part of the store, such as inbox/.
Two rules keep flows from starting each other forever:
- A flow never starts itself. When a run of this flow writes to the store it watches, the change does not start another run of it.
- A chain of flows starting each other through stores stops after four steps.
Each change the trigger does not take is recorded with the reason. Open the store and click Triggers to see the flows it starts and its recent changes, each with the runs it started and why a flow skipped it.


What a run gets
Section titled “What a run gets”$start->payload describes the change:
| Field | What it holds |
|---|---|
store |
The store’s id and name. |
action |
create, edit (rewritten) or delete. |
files |
Each changed file as a reference: id, storeId, versionId, key, filename, mediaType, sizeBytes and checksum. At most 100 files. |
via |
Where the change came from: panel, portal, chat, mcp, flow or system (retention, an email’s attachments). |
by |
Who made it: memberId, portalIdentityId, or for a flow flowExecutionId and flowId. |
truncated |
true when the change touched more than 100 files. |
A reference is what the file nodes read, so you can pass
{!! $start->payload->files[0] !!} straight to
Read a File as Text. With One run per
file, each file starts its own run and its reference sits in
$start->payload->file in place of files.
Configuration
Section titled “Configuration”

| Field | Type | Default | Description |
|---|---|---|---|
File store (objectStoreId) | string ✦ (required) | — | The file store whose files start this flow. |
Files added (onCreate) | boolean (optional) | true |
Start a run when a file is added. |
Files rewritten (onEdit) | boolean (optional) | true |
Start a run when a file is written again under the same key: a new version. |
Files deleted (onDelete) | boolean (optional) | false |
Start a run when a file is deleted. The run gets the file as it was; its bytes stay until the retention sweep. |
Only keys starting with (keyPrefix) | string (optional) | — | Only start for files whose key starts with this, such as invoices/. Leave empty for every file. |
Changes made by flows (fromFlows) | boolean (optional) | true |
Also start when a flow writes the files. A flow never starts itself by writing to a store it watches. |
One run per file (perFile) | boolean (optional) | false |
Start one run per file instead of one run per change. |
Without overlapping (withoutOverlapping) | boolean (optional) | false |
Prevent a new run from starting while a previous run for this trigger is still in progress. With “Overlap key” set, only a run about the same key blocks. |
Overlap key (overlapKey) | string (optional) | — | What a run is about, for the overlap rule: a JSON path into the payload, such as $.file.key with one run per file. |
Fields marked ✦ accept expressions.