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,.wavor.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
- Read the message: it names the rule that was broken.
- Rename the file, or send a clean
filenamein the request: letters, numbers, spaces, dashes and underscores, ending in an extension such as.mp3. - Ask for the upload address again with
POST /v1/upload, then upload the file to it.
In Claude, ChatGPT and other AI apps
- 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,.mp4or 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
filenameyou sent, and therequest_idfrom 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 requiredFilename contains control characters (null byte, newline, etc.)Filename must not contain path-traversal sequencesFilename must be 255 characters or fewerFilename must not contain path separatorsFilename must not contain < > " ' or ` charactersFilename 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).
{
"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"
}
}