Cloudflare R2 icon

Cloudflare R2

Manage Cloudflare R2 buckets and objects

File → Download

AI-generated

Summary

Downloads a file from a Cloudflare R2 bucket and adds its contents as binary data to the corresponding n8n item.

Inputs

  • Bucket Name (required) — The R2 bucket containing the file.
  • File Key (required) — The file's object key in the bucket, such as documents/report.pdf. Keys ending in / are rejected because they represent folders.
  • Output Binary Field (required) — The binary property to store the downloaded file in; defaults to data.

Output shape

One n8n item per input item, preserving its JSON and existing binary properties and adding the downloaded file under the chosen binary field.

The binary filename is taken from the final segment of the file key, and the R2 Content-Type is used as the MIME type. An empty response body causes an error; with Continue On Fail enabled, errors are returned as an item with an error field.

Links

Discussion