Input files
Input files are files you upload to an Unstract Flow project for its workflows' runs to read, such as a price list, a CSV of vendors or a sample document. Every workflow in the project can read every file in it.
A list you export from your ERP again and again, such as your items or customers, belongs in a reference table instead: each import shows what changed before it replaces the list.
Upload files
Anyone who can open the project can see and download its files. Uploading and deleting them need the Owner, Admin or Member role and edit access to the project; Projects says who has it.
- On the project's page, open the Data tab and select Upload files.
- Pick one or more files. Each file can be up to 100 MB. A larger file isn't uploaded, and a message gives its size. An empty file isn't uploaded either.
The tab lists each file's Name, Size and when it was Uploaded. To download a file, select Download, the icon on its row. To delete one, select Delete, the bin on its row, then Delete in the dialog. Deleting a file, here or in the editor, removes it from every workflow in the project, and a step that reads it fails until it's uploaded again.
The editor's Tools and configuration panel lists the same files under Files, below the line "Shared by every workflow in" and the project's name. There, drag files onto Drag & drop files here, or select that area to browse for them. A dropped file over 100 MB is ignored. Once you select files in the list, Download (n) and Delete (n) appear; to remove them, select Delete (n), then Delete.
Uploaded files keep their names: to change one, delete the file and upload it again under the new name. Each name belongs to one file in the project, and capitals count: Vendors.csv and vendors.csv are two files.
Refer to a file in the spec
Type @ and pick the file from the suggestions, which list the project's files, and the editor inserts @file: and its name, for example @file:vendors.csv. Unlike a connector mention, the reference stays plain text.
Match each invoice's vendor against the vendor list in @file:vendors.csv.
How runs get the files
Before each run starts, Flow copies the project's input files into that run's own workspace. Every run of every workflow in the project, including runs a deployment starts, reads the files as they are when it starts, so replacing or deleting a file changes what production runs use. To replace a file, delete it first, then upload the new one: uploading a file under a name the project already has fails and leaves the listed file as it was. A step that changes its copy leaves your uploaded file as it was, and the next run starts from the originals again.
Moving a workflow to another project copies the input files its spec names with @file: into the new project, and the workflow then reads the new project's files. Where the new project already has a file of the same name, it keeps its own, and the workflow reads that one. The move dialog lists only files the old project has, so upload to the new project any file the spec names that neither project has before the workflow next runs. When the stored copy of one of the old project's files is missing, the move leaves that file out, and the message after the move names it. The old project keeps its files, and from then on the two copies change separately. Projects covers the move. An export carries only the files the spec names with @file:, as Export and import describes. Make a copy gives the copy's project the input files of the original's project, leaving out any whose stored copy is missing; Share projects covers what else the copy gets.