---
title: "The file name is not valid"
description: "You asked for an upload address, but the filename you gave is not one the API accepts. The API answered 400 INVALIDFILENAME, and the message says which rule…"
canonical: "https://www.scriptivox.com/errors/filename-invalid"
last-updated: "2026-11-24"
---

# The file name is not valid

> The message: "Filename must be ASCII only. Rename your file (e.g. drop accents and emoji) before uploading."

## What happened
You asked for an upload address, but the `filename` you gave is not one the API accepts. The API answered `400 INVALID_FILENAME`, and the message says which rule the name broke. No upload address was made, so nothing was started.

## Why it happens
A file name has to follow all of these rules:
- It must be there. An empty name, or one that is only spaces, is refused.
- It must have an extension, such as `.mp3`, `.wav` or `.mp4`.
- It must be plain ASCII. Letters with accents, emoji and non-Latin characters are refused.
- It must be 255 characters or fewer.
- It must not contain a path. `/` and `\` are refused, and so are `../` and `..\`.
- It must not contain `<`, `>`, `"`, `'` or a backtick.
- It must not contain control characters such as a line break or a null byte.

A name with an extension we do not support (for example `.txt`) is refused with a different code, `INVALID_MEDIA_FORMAT`.

## What to do
1. Read the message: it names the rule that was broken.
2. Rename the file, or send a clean `filename` in the request: letters, numbers, spaces, dashes and underscores, ending in an extension such as `.mp3`.
3. Ask for the upload address again with `POST /v1/upload`, then upload the file to it.

### In Claude, ChatGPT and other AI apps
1. You see this only when the app uses an API key or API credits. Ask the app to send the file again with a simple name: no accents or emoji, and ending in `.mp3`, `.wav`, `.mp4` or the file's own extension.

## Were you charged?
No. Nothing was started, so nothing was used.

## Still stuck?
Email support@scriptivox.com with:
- the email address of your Scriptivox account
- the `filename` you sent, and the `request_id` from the answer
- when it happened, with your time zone
- the exact message you saw

In Claude, ChatGPT or another AI app, you can also ask it to send us a problem report: it shows you the report first and sends it only when you say yes.

## For developers
`400 INVALID_FILENAME`, answered at once by `POST /v1/upload`. Sending the same name again gives the same answer; change the name. The sentences are:

- `Filename is required`
- `Filename contains control characters (null byte, newline, etc.)`
- `Filename must not contain path-traversal sequences`
- `Filename must be 255 characters or fewer`
- `Filename must not contain path separators`
- ``Filename must not contain < > " ' or ` characters``
- `Filename must be ASCII only. Rename your file (e.g. drop accents and emoji) before uploading.`
- `Filename must include an extension (e.g. .mp3, .wav, .mp4).`

```json
{
  "error": {
    "code": "INVALID_FILENAME",
    "message": "Filename must be ASCII only. Rename your file (e.g. drop accents and emoji) before uploading.",
    "docs_url": "https://www.scriptivox.com/errors/filename-invalid",
    "help_id": "filename-invalid",
    "request_id": "req_6fe725fffa7d9b98"
  }
}
```

---

Every help page: https://www.scriptivox.com/errors.md (the list as JSON: https://www.scriptivox.com/errors.json)
