s3_presign_upload_part
Generate short-lived presigned PUT URLs for multipart upload parts so clients upload each part directly to B2 and capture ETags to complete the upload.
Instructions
Generate short-lived presigned PUT URL bearer capabilities for parts of an S3-compatible multipart upload, so the client/worker uploads each part DIRECTLY to B2. The response includes expiresIn/expiresAt; treat each URL as sensitive until it expires. Flow: s3_create_multipart_upload → s3_presign_upload_part → PUT each part to its URL (capture the ETag from each response header) → s3_complete_multipart_upload with those ETags. Parts except the last must be ≥5 MiB.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | The object key. | |
| bucket | Yes | The bucket name. | |
| uploadId | Yes | The UploadId from s3_create_multipart_upload. | |
| expiresIn | No | URL expiry in seconds (default: 3600 = 1 hour, max: 604800 = 7 days). | |
| partNumbers | Yes | Part numbers to presign (each 1–10000). Mint all parts at once, or only the missing ones to resume. |