> ## Documentation Index
> Fetch the complete documentation index at: https://docs.api.rask.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# upload_size_mismatch

> Upload size mismatch: HTTP 422 from the Rask API v3. What it means, what to do and which operations return it.

| Status | `retry` | `recommendation` |
| - | - | - |
| 422 | `none` | `fix_request` |

## What happened

Upload size mismatch. For example: The uploaded object size differs from size\_bytes.

## What to do

Create a new upload with the exact size\_bytes of the file.

`fix_request`: change the request or its inputs; sent unchanged it fails again.

`none`: do not retry the request unchanged.

## Example

```json theme={null}
{
  "type": "https://docs.api.rask.ai/errors/upload_size_mismatch",
  "title": "Upload size mismatch",
  "status": 422,
  "detail": "The uploaded object size differs from size_bytes.",
  "instance": "urn:uuid:7d5c0e9a-3f1b-4c2e-9a8d-6b4f2e1c0d93",
  "code": "upload_size_mismatch",
  "retryable": false,
  "retry": "none",
  "recommendation": "fix_request",
  "hint": "Create a new upload with the exact size_bytes of the file.",
  "errors": [],
  "declared_size_bytes": 1048576,
  "actual_size_bytes": 1048000
}
```

## Operations that return it

* [completeUpload](https://docs.api.rask.ai/operations/completeUpload.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.