rename

This block is part of the files group and was last modified in core v10.4.28.

rename v10.4.28

Renames the given files.

In pins 2 + flow
  • flow
    flow
  • files required
    file
  • name required
    value
Out pins 3 + flow
  • flow
    flow
  • success
    condition
  • error
    value
  • files
    file

A typical wiring for rename: branch feeds the flow pin; resize feeds the file pin; move to public feeds the value pin; the flow out pin feeds branch; the value out pin feeds move to public.

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

Commonly used with

In production blueprints, this block is most often wired together with:

  • branch: wired in both directions with this block.
  • move to public: wired in both directions with this block. Moves the given files to a new public destination.
  • resize: feeds into this block. resize given images with new dimensions.
  • get link: this block feeds into it. Returns the link of a given file which can be used as a img src. Will only work with public files.
  • set fields: this block feeds into it. Generates an array of mutations based on the given filled fields.
  • generate guid: feeds into this block. Generates a unique GUID. When a seed is provided, the GUID is deterministic (same seed always produces the same GUID) — the sha256 of the seed, the same derivation the document blocks apply to their guid_seed pin. Wire this output into verbatim guid pins (get / update / remove) to address seed-created documents. Never wire it into a guid_seed pin: that would hash the already-hashed value again and address a different document — give guid_seed pins the raw seed instead.

Version history

Introduced in v10.4.28.


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