hash

This block is part of the files group and was last modified in core v15.0.0.

hash v15.0.0

Computes a content hash (sha256 by default; md5/sha1 supported) for each given file : e.g. to detect duplicate uploads before storing them.

In pins 2 + flow
  • flow
    flow
  • files required
    file
  • algorithm
    value

    Hash algorithm: sha256 (default), sha1 or md5

    Default sha256

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

    The input files, each with a `hash` field added

  • hash
    value

    The first file's hex digest : the common single-upload case

A typical wiring for hash: branch feeds the flow pin; get file from assets feeds the file pin; the flow out pin feeds create document.

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

Commonly used with

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

  • branch: feeds into this block.
  • create document: this block feeds into it. Creates a document in the given storage.
  • set fields: this block feeds into it. Generates an array of mutations based on the given filled fields.

Version history

Introduced in v15.0.0.


Back to files Return to the main group to view all sub-groups Back to file encoding Return to the group to view all blocks within this group