Cloudflare R2
Actions15
- Bucket Actions
- Object Actions
- Batch Operations Actions
Overview
This node integrates with Cloudflare R2 object storage, specifically enabling management of objects within buckets. The "Get Metadata" operation retrieves metadata information about a specific object stored in a given R2 bucket without downloading the actual file content.
Typical use cases include:
- Inspecting file attributes such as size, content type, or custom metadata before deciding to download or process the file.
- Automating workflows that depend on object metadata for conditional logic (e.g., processing only files of a certain type).
- Monitoring and auditing stored objects by extracting metadata details programmatically.
For example, you might use this node to check the metadata of an image file stored in your R2 bucket to verify its MIME type and custom tags before triggering further image processing steps.
Properties
| Name | Meaning |
|---|---|
| Bucket Name | The name of the Cloudflare R2 bucket where the object is stored. |
| Object Key | The key (path and filename) identifying the object within the specified bucket. |
Output
The output JSON contains at least the following fields:
key: The object key provided as input.message: A string indicating that metadata retrieval is not fully implemented yet.
Note: According to the source code, the actual metadata retrieval logic is not fully implemented, so the returned data currently does not include real metadata details.
No binary data output is produced by this operation.
Example output JSON:
{
"key": "folder/filename.ext",
"message": "Metadata retrieval not fully implemented yet"
}
Dependencies
- Requires an API authentication credential for Cloudflare R2.
- Uses internal utility functions from a bundled Cloudflare R2 utilities module to interact with the R2 service.
- No additional external dependencies are indicated.
Troubleshooting
- Invalid Bucket or Object Key: If the bucket name or object key format is invalid, the node may throw an error. Ensure the bucket exists and the object key is correctly specified.
- Operation Not Fully Implemented: The "Get Metadata" operation currently returns a placeholder message indicating incomplete implementation. Users expecting full metadata details will need to wait for future updates or implement custom solutions.
- API Authentication Errors: Ensure the API key credential is correctly configured and has sufficient permissions to access the specified bucket and object.