v1

latestOpenAPI 3.0.32026-07-26172157253.6 KB
Client

Confirm Presigned Upload

Confirms that a file was successfully uploaded to S3 using presigned URL

post/api/storage/buckets/{bucketName}/objects/{objectKey}/confirm-upload

Path parameters

bucketNamestring required
objectKeystring required

Request body

sizeinteger required

File size in bytes

contentTypestring

MIME type of the file

etagstring

S3 ETag of the uploaded object (optional)

Example request

{
  "size": 102400,
  "contentType": "image/jpeg",
  "etag": "9bb58f26192e4ba00f01e2e7b136bbd8"
}

Response

Upload confirmed (object created or replaced)

bucketstring required

Name of the bucket containing the object

keystring required

Unique key identifying the object within the bucket

sizeinteger required

Size of the file in bytes

mimeTypestring

MIME type of the file

uploadedAtstring date-time required

ISO timestamp when the file was uploaded

urlstring required

URL to download the file

Example response

{
  "bucket": "avatars",
  "key": "user123.jpg",
  "size": 102400,
  "mimeType": "image/jpeg",
  "uploadedAt": "2024-01-15T10:30:00Z",
  "url": "/api/storage/buckets/avatars/objects/user123.jpg"
}