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
valueHash algorithm: sha256 (default), sha1 or md5
Out pins 4 + flow
- flow
flow - success
condition - error
value - files
fileThe input files, each with a `hash` field added
- hash
valueThe 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.

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
