Developer docs · Problems

Size mismatch

HTTP 422 · https://impartire.com/problems/size-mismatch

What it means

The completed multipart upload is not size_bytes long, so it was discarded and the upload failed; start a new upload with the file's exact size.

What to do

The parts were discarded. Start a new upload with the file's exact size_bytes and send every part of exactly part_size_bytes (the last part: the rest).

Example

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

{
  "type": "https://impartire.com/problems/size-mismatch",
  "title": "Size mismatch",
  "status": 422,
  "detail": "The assembled file is 52428800 bytes, not the 52428801 this upload was created for, so it was discarded.",
  "instance": "/api/v1/uploads/9c1d2e3f-4a5b-4c6d-8e7f-0a1b2c3d4e5f/complete",
  "request_id": "01JB8Z5W6Q4N3X2V1T0S9R8P7M"
}