---
title: "Upload Claim Mismatch"
description: "The PUT to an upload URL does not match what you declared when you created it. Send exactly the declared bytes and headers, or create a new URL."
canonical: "https://signatureapi.com/docs/v1/errors/upload-claim-mismatch"
source: "https://signatureapi.com/docs/v1/errors/upload-claim-mismatch.md"
last_verified_api_version: "1.18.1"
---

# Upload Claim Mismatch

The PUT to an upload URL does not match what you declared when you created it. Send exactly the declared bytes and headers, or create a new URL.

_Last verified against API version 1.18.1._

## What Happened

When you [create an upload URL](https://signatureapi.com/docs/api/resources/uploads/create-url), you declare the file's `media_type`, `size` and `sha256`. The PUT to `upload_url` must match those claims. The API refused the PUT because one of them differs:

- The `Content-Type` header is not the `media_type` you declared.
- The `Content-Length` is larger than the `size` you declared.
- The `x-amz-content-sha256` header is not the `sha256` you declared.

Nothing is stored when the PUT is refused.

## Example response

```json 422 Unprocessable Content (application/problem+json)
{
  "type": "https://signatureapi.com/docs/v1/errors/upload-claim-mismatch",
  "title": "Upload Claim Mismatch",
  "status": 422,
  "detail": "Observed content_type does not match the bound claim: expected application/pdf, got text/plain"
}
```

## How to Fix

- Send the same `Content-Type` and `x-amz-content-sha256` values you declared, and PUT exactly the bytes you hashed.
- Check that the file did not change between hashing it and sending it, and that the request body is not re-encoded on the way (for example by a client that adds a charset or compresses the body).
- Declare the real size of the file. The body cannot be larger than the declared `size`.
- If the declared values were wrong, [create a new upload URL](https://signatureapi.com/docs/api/resources/uploads/create-url) with the correct ones and PUT again.

Still stuck? [Contact support](https://signatureapi.com/support).
