Download as File
AI-generatedSummary
Downloads a file from an IPFS gateway as binary data in each input item’s data property. Uses the CID in the gateway URL and the optional path as the request URL; can set the binary file’s MIME type and filename.
Inputs
- IPFS Gateway — Gateway URL template. The default Web3 Storage template is
https://<<cid>>.ipfs.w3s.link; the node replaces<<cid>>with the required CID. - CID (required) — CID of the file to download.
- Path — Path sent as the GET request URL. When provided, its basename is used as the binary filename unless Overwrite File Name is set.
- Mime Type — Overrides the downloaded binary’s MIME type when non-empty. Recognized MIME types also set n8n’s file type for JSON, plain text, PDF, JPEG/PNG images, and HTML.
- Overwrite File Name — Overrides the downloaded binary’s filename when non-empty; the file extension is then derived from that filename.
- Request Options — Optional batching, insecure SSL certificate acceptance, HTTP proxy, and request timeout settings.
Output shape
One or more input items with downloaded binary data in binary.data.
If an output item has no JSON fields, the node adds a
json.fileobject with available file metadata andjson.inputcontaining the corresponding input data. Existing non-empty JSON is preserved. Binary file metadata fields may be omitted when undefined.