# invalid_file

> file is missing or malformed (filename missing, blank, longer than 255 characters or with control characters; data not a string; an unknown key), or the PDF or Word file itself is damaged or not a Word document.

HTTP status: 400, 422

## What to do

Send a PDF or a Word .docx file that opens, with a filename.

## Example

```json
{
  "error": "invalid_file",
  "request_id": "0f8e2c4a-6b1d-4e3f-9a7c-5d2b8e1f4a60",
  "doc_url": "https://developers.komplai.dk/errors/invalid_file"
}
```

## Operations that can return it

- POST /v1/redact/file (https://developers.komplai.dk/reference/redact.md)
- POST /v1/redact/file/jobs (https://developers.komplai.dk/reference/redact.md)

---

https://developers.komplai.dk/errors/invalid_file
