Actions17
- Bucket Actions
- Object Actions
- Batch Operations Actions
Object → Upload
AI-generatedSummary
Upload a file or data to a Cloudflare R2 bucket.
Inputs
- bucketName (required) — The name of the R2 bucket to operate on.
- objectKey (required) — The key (path/filename) of the object in the bucket
- dataSource — Source of the data to upload
- binaryPropertyName — Name of the binary property containing the file data
- textContent — The text content to upload
- base64Content — Base64-encoded content. Supports raw base64 or data URLs with MIME type prefix
- base64FileName — Optional filename for the uploaded file. If not provided, a default name will be used
- contentType — MIME type of the content. If empty, will be auto-detected.
- metadata — Custom metadata to attach to the object
Output shape
a single success record containing uploaded object metadata and message
Errors are thrown or returned individually; successful uploads include a message but no extensive detail.
Examples
Example 1: Upload binary data from a previous node
Bucket Name: my-bucket; Object Key: uploads/file.bin; Data Source: binaryData; Binary Property: data
Example 2: Upload text content directly
Bucket Name: logs; Object Key: 2024/log.txt; Data Source: textContent; Text Content: Hello world; Content Type: text/plain
Example 3: Upload base64 content with custom filename
Bucket Name: images; Object Key: new.png; Data Source: base64Data; Base64 Content: iVBORw0KG...; Base64 File Name: new.png; Content Type: image/png