Actions11
Overview
This node generates a presigned URL for uploading (PUT operation) an object to a specified bucket in an object storage service compatible with the MinIO API. A presigned URL allows users to securely upload files directly to the storage without requiring direct access credentials, by granting temporary permission via the URL.
Common scenarios include:
- Allowing clients or third-party services to upload files directly to cloud storage without exposing sensitive credentials.
- Generating time-limited upload links for secure file transfers.
- Integrating file uploads into web or mobile applications where backend servers generate presigned URLs and clients use them to upload content.
Example: A web app backend generates a presigned PUT URL for a user to upload their profile picture directly to a storage bucket, valid for 1 hour.
Properties
| Name | Meaning |
|---|---|
| Bucket Name | The target bucket where the object will be uploaded. Can be selected from a list of buckets or entered manually. |
| Object Name | The key (name) of the object to upload. Can be selected from existing objects or entered manually. |
| Options | Additional options for the presigned URL generation: |
| Expiration | The validity duration of the presigned URL in seconds. Default is 604800 seconds (7 days). |
Output
The node outputs JSON data containing the generated presigned URL for the PUT operation. This URL can be used to upload the specified object to the given bucket within the expiration time.
The output JSON structure typically includes at least:
- The presigned URL string under a relevant property (e.g.,
url).
No binary data output is produced by this node.
Dependencies
- Requires connection to an object storage service compatible with the MinIO API.
- Needs appropriate API credentials configured in n8n to authenticate requests.
- The node depends on internal methods for listing buckets and objects to support resource locator inputs.
Troubleshooting
- Invalid Bucket or Object Name: Ensure the bucket and object names are correct and accessible with the provided credentials.
- Expired URL: The presigned URL expires after the specified time; regenerate if expired.
- Permission Denied: Verify that the API credentials have sufficient permissions to generate presigned URLs and perform PUT operations.
- Network Issues: Confirm network connectivity to the object storage endpoint.
- Missing Required Parameters: Both bucket name and object name must be provided; otherwise, the node will fail.