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.

In pins 3 + flow
  • flow
    flow
  • file required
    file

    The single source file to copy. When an array is given, the first file is used.

  • paths required
    array

    Array of full destination paths, each including the filename, e.g. ["/public/uploads/hero.png", "/public/thumbs/hero.png"].

  • overwrite required v15.0.0
    condition

    Overwrites file at destination if it exists.

    Default true

Out pins 3 + flow
  • flow
    flow
  • success
    condition
  • error
    value
  • files
    file

    Array 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.

Studio canvas example for the spread block: typical wiring for spread.

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