Developer docs · Problems

Not a multipart upload

HTTP 422 · https://impartire.com/problems/not-multipart

What it means

The upload is a single PUT, so it has no parts to sign, complete or abort; PUT the whole file to its upload_url. POST /api/v1/uploads with multipart: true starts a multipart upload.

What to do

This upload is a single PUT: PUT the whole file to its upload_url. For a file over 5 GiB, start a new upload with multipart: true.

Example

Sent as application/problem+json with status 422. detail varies with the request; branch on type.

{
  "type": "https://impartire.com/problems/not-multipart",
  "title": "Not a multipart upload",
  "status": 422,
  "detail": "Upload 9c1d2e3f-4a5b-4c6d-8e7f-0a1b2c3d4e5f is a single PUT, not a multipart upload: PUT the whole file to its upload_url.",
  "instance": "/api/v1/uploads/9c1d2e3f-4a5b-4c6d-8e7f-0a1b2c3d4e5f/parts",
  "request_id": "01JB8Z5W6Q4N3X2V1T0S9R8P7M"
}