Actions11
Overview
This node operation uploads (puts) an object into a specified bucket in a MinIO storage service. It is useful for scenarios where you need to programmatically store files or data blobs into cloud storage buckets, such as backing up files, storing user uploads, or managing media assets. For example, you can upload an image file from a binary field in the workflow to a MinIO bucket with optional metadata.
Use Case Examples
- Uploading a user profile picture to a MinIO bucket named 'user-uploads' with metadata describing the file type.
- Backing up a generated report file from a workflow binary field into a 'reports' bucket for archival.
Properties
| Name | Meaning |
|---|---|
| Bucket Name | Specifies the target bucket in MinIO where the object will be stored. It can be selected from a list of existing buckets or provided as a string ID. |
| Object Name | Specifies the key or name of the object to be stored in the bucket. It can be selected from a list of existing objects or provided as a string ID. |
| Field Name | The name of the binary field in the workflow data that contains the object data to upload. |
| Options | Additional optional parameters for the upload operation, including an override for the object name and metadata to associate with the object. |
Output
JSON
bucketName- The name of the bucket where the object was uploaded.objectName- The name/key of the uploaded object in the bucket.etag- The ETag or unique identifier of the uploaded object, useful for verifying upload success.
Dependencies
- Requires connection to a MinIO storage service with appropriate credentials for bucket access and object upload.
Troubleshooting
- Common issues include incorrect bucket or object names leading to upload failures, missing or incorrect binary field names causing no data to be uploaded, and permission errors due to insufficient credentials.
- Error messages may indicate bucket not found, object name conflicts, or authentication failures. Verify bucket existence, object naming conventions, and credential validity to resolve these.
Links
- MinIO JavaScript Client API - Official documentation for MinIO JavaScript client used for object storage operations.