---
"@context": https://schema.org
"@type": TechArticle
"@id": https://www.twilio.com/docs/api/errors/61314#article
headline: "61314: Invalid filename"
url: https://www.twilio.com/docs/api/errors/61314
inLanguage: en
dateModified: 2026-11-18T23:54:25.000Z
author:
  "@type": Organization
  name: Twilio Developer Education Team
publisher:
  "@type": Organization
  name: Twilio
---

# 61314: Invalid filename

Log Type: APPLICATION

Log Level: ERROR

## Description

Twilio rejects the document upload when the filename contains a directory path. The filename must consist of the filename only, without any folder or path segments.

### Possible causes

* The filename contains path separators such as `/` or `\`, for example `documents/passport.pdf` or `C:\Users\me\passport.pdf`.
* The filename contains relative path segments, such as `../`.
* Your application passes the full local file path instead of only the filename.

### Possible solutions

* Remove any directory path from the filename and send only the base filename (for example, `passport.pdf`).
* If your application builds the upload request from a local path, extract the base filename before sending it.
