Skip to content

civex.load_file

Load the bytes and metadata from a file field on the trigger record. Reach for this when a downstream step (built-in or custom) needs the actual file content, not just its reference.

Plugin ID: civex.load_file
Category: data-sources
Capabilities: read

Config

Field Type Required Default Description
field string yes The file field of the record it runs on.

Outputs

Name Type Required Description
bytes bytes yes The file's contents.
filename string yes The file's name.
sha256 string yes The file's content hash.
- id: load_reading
  plugin: civex.load_file
  config:
    field: reading

- id: process
  plugin: my.csv_processor
  inputs:
    bytes: load_reading.bytes
    filename: load_reading.filename