Cloudflare R2
Actions15
- Bucket Actions
- Object Actions
- Batch Operations Actions
Overview
The "Upload Multiple" operation under the "Batch Operations" resource in this Cloudflare R2 node allows users to upload multiple files to a specified R2 bucket in one batch. This is useful when you need to efficiently handle bulk uploads of files, such as migrating large datasets, backing up multiple documents, or processing many images at once.
However, based on the source code, the "uploadMultiple" batch operation is currently not implemented and will return a message indicating this status. The node supports other batch operations like deleting multiple objects, which are implemented.
Practical Example
- You want to upload several files from your workflow to a Cloudflare R2 bucket simultaneously.
- Instead of uploading each file individually, you would use this batch operation to streamline the process.
- Note: Since the feature is not yet implemented, you would receive a notification that it is unavailable.
Properties
| Name | Meaning |
|---|---|
| Bucket Name | The name of the R2 bucket to operate on. This specifies the target bucket for uploads. |
Output
The output for the "Upload Multiple" batch operation currently returns a JSON array with an object containing:
success: A boolean indicating the operation status (alwaysfalsehere).message: A string stating that the batch upload operation is not yet implemented.
Example output JSON:
[
{
"success": false,
"message": "Batch operation uploadMultiple not yet implemented"
}
]
No binary data output is produced by this operation.
Dependencies
- Requires an API key credential for authenticating with Cloudflare R2.
- Relies on internal utility functions (
CloudflareR2Utils) for interacting with the Cloudflare R2 service. - Needs proper configuration of the Cloudflare R2 credentials within n8n.
Troubleshooting
- Operation Not Implemented: When using "Upload Multiple," the node will always return a message that this feature is not yet implemented. Users should be aware that this functionality is currently unavailable.
- Bucket Name Validation: Ensure the bucket name is correctly specified and exists in your Cloudflare R2 account.
- API Authentication Errors: If authentication fails, verify that the API key credential is correctly set up and has sufficient permissions.
- Input Data Format: For batch operations that are implemented (like deleteMultiple), ensure that object keys are provided one per line and do not exceed 1000 entries.
Links and References
- Cloudflare R2 Documentation
- n8n Documentation - Creating Custom Nodes
- Cloudflare R2 API Reference (for understanding underlying API calls)