Files
Last updated
Was this helpful?
Last updated
Was this helpful?
The Files action evaluates its options using , temporarily storing the resulting files and making them available via a randomized Mechanic URL.
This action is most useful in concert with , by which a task may take the resulting file URLs and pass them on to another service. Used by itself, this action can also be useful for quickly testing file generators.
This action accepts a JSON object, whose keys are filenames and whose values are . In this way, many files may be defined and generated by a single Files action.
A Files action returns an object having the same keys (i.e. filenames) as its input. Each value is an object, having the following properties:
File property
Description
expires_at
An ISO8601 timestamp, specifying when the file will expire
mime_type
name
The filename, as given in the original action options
size
The size of the generated file, in bytes
url
The URL at which this file will be available, until it expires
This task generates a variety of files. It then re-invokes itself (via mechanic/actions/perform), sending an email containing links to each of the generated files.
The of the generated file