---
title: "Invalid File Format"
description: "The upload's content type is not PDF or DOCX, so it cannot be inspected. Convert the file and upload it again with the right Content-Type."
canonical: "https://signatureapi.com/docs/v1/errors/invalid-file-format"
source: "https://signatureapi.com/docs/v1/errors/invalid-file-format.md"
last_verified_api_version: "1.18.0"
last_modified: "2026-11-18T11:41:57Z"
---

# Invalid File Format

The upload's content type is not PDF or DOCX, so it cannot be inspected. Convert the file and upload it again with the right Content-Type.

_Last verified against API version 1.18.0._

## What Happened

The server could not read the upload as a PDF or DOCX file. It decides the format from the `Content-Type` of the stored file, and only `application/pdf` and the DOCX type `application/vnd.openxmlformats-officedocument.wordprocessingml.document` are accepted. You see this error when you request an upload's structure with `GET /v1/uploads/{upload_id}/structure`.

> **Tip:** The response includes a `detail` property with more information about this error.

## How to Fix

- Convert the file to PDF or DOCX and create a new upload.
- If the file is already a PDF or DOCX, send it with the matching `Content-Type` header when you upload the bytes.
- Convert images (PNG, JPG), spreadsheets (XLSX) and plain text (TXT) to PDF first.

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