Actions8
- File Actions
- Category Actions
File → Download
AI-generatedSummary
Download a file from Ainoflow object storage using its category and key, returning binary data and metadata.
Inputs
- category (required) — Category (namespace) for the file
- key (required) — Key of the file
Output shape
binaryAndJson
The node returns a single item with a
binaryproperty containing the decoded file data as a Buffer and ajsonproperty containing{ category, key, fileName, mimeType }. ThefileNameis extracted from thecontent-dispositionresponse header if present; otherwise it defaults to the providedkey. The item is paired with its input index for downstream chaining.
Examples
Example 1: Retrieve a PDF stored under category 'reports' with key '2024-q1-report'
Set Category to 'reports' and Key to '2024-q1-report'. The node emits binary data that can be written to disk or passed to another node, plus JSON metadata for identification.