Actions35
- Bucket Actions
- IAM Actions
- Object Actions
Object → Get Presigned Upload URL
AI-generatedSummary
Generate a presigned URL for uploading a file to a specified bucket and object key in the Mega.nz S4 storage service, valid for a configurable expiration time.
Inputs
- Bucket Name (required) — Specify the name of the bucket to which the file will be uploaded.
- Object Key (required) — Specify the key (path and filename) for the object to be uploaded.
- Expiration Time — Optionally define how many seconds the presigned URL will remain valid (default is 3600 seconds, up to a maximum of 604800 seconds).
- Content Type — Optionally set the MIME type of the file to be uploaded (e.g., image/png).
Output shape
a single JSON object containing the presigned upload URL and any relevant metadata
The output includes the presigned URL usable for uploading the file to the specified bucket/key. The URL expires after the configured number of seconds. No pagination or multiple items are returned.
Examples
Example 1: Generate a presigned URL to upload 'image.png' to bucket 'my-bucket'
Set Bucket Name to 'my-bucket', Object Key to 'uploads/image.png', and optionally set Content Type to 'image/png' and Expiration Time to 3600 seconds.