Actions10
Скачать файл
AI-generatedSummary
Download a file by its file ID from the N8nFront Bot API and store it as binary data in the specified workflow property.
Inputs
- File ID (required) — The identifier of the file (file_id), typically obtained from a message containing the file.
- Binary Property — The name of the binary property in which to save the downloaded file data. Defaults to 'data'.
Output shape
A single workflow item containing the file metadata as JSON and the downloaded file as binary data under the specified binary property name.
The operation first retrieves file info using the file ID and then downloads the binary file content. If the file is not found or download fails, an error is thrown or returned depending on the node's continueOnFail setting.
Examples
Example 1: Download a file and store it in the default 'data' binary property
Provide the file ID of the target file and leave the 'Binary Property' as 'data'. The output will include the file info JSON and the binary file data.