spread
This block is part of the files group and was last modified in core v15.0.0.
spread v15.0.0 Copies a single source file to multiple destination paths, creating a real copy for each. Each entry in paths is a full destination path including the filename (e.g. /public/uploads/hero.png), so one upload can be fanned out to several locations and/or names at once.
- flow
flow - file required
fileThe single source file to copy. When an array is given, the first file is used.
- paths required
arrayArray of full destination paths, each including the filename, e.g.
["/public/uploads/hero.png", "/public/thumbs/hero.png"]. - overwrite required
v15.0.0conditionOverwrites file at destination if it exists.
- flow
flow - success
condition - error
value - files
fileArray of the created file copies (one per destination path).
file spread |
file copy multi |
file fan out |
A typical wiring for spread: a function trigger starts the flow; get file from assets feeds the file pin; with values feeds the paths pin; == feeds the overwrite pin; the flow out pin feeds debug.

Version history
Introduced in v15.0.0.
Back to
files Return to the main group to view all sub-groups Back to file modification Return to the group to view all blocks within this group
