Initiate Multipart Upload
POST/api/v1/upload/multipart/initiate
Starts a multipart upload session, creates a DB record, and returns presigned URLs for all parts.
Request
- application/json
Body
required
File name (no spaces allowed)
Optional full object key. If omitted, the server generates one (upload/{userId}/{uuid}/{fileName}) to keep the bucket layout consistent. If supplied, it is used as-is and the caller owns the outcome.
Default value: application/octet-stream
MIME type of the file
Total file size in bytes
Default value: true
Whether to trigger an SBOM scan after upload
Responses
- 201
- application/json
- Schema
- Example (from schema)
Schema
Array [
]
S3 multipart upload ID
Full object key in the bucket
Database record ID for this file upload
Part size in bytes
Total number of parts
urls
object[]
required
Presigned URLs for all parts
Part number (1-based)
Presigned URL for uploading this part
{
"uploadId": "string",
"objectKey": "string",
"fileUploadId": 0,
"partSize": 0,
"partCount": 0,
"urls": [
{
"partNumber": 0,
"url": "string"
}
]
}