Skip to main content
A few limitations exist when working with files.

Name restrictions

File and folder names can be up to 255 characters long and can’t contain:
  • Non-printable ASCII characters
  • Forward or backward slashes (/, \)
  • Leading or trailing whitespace
  • Unicode characters outside the basic multilingual plane, such as most emoji
The names . and .. are also unsupported. If you create a folder or upload a file with a name that breaks these rules, the API returns a 400 error with the code item_name_invalid. If you copy a file or folder and provide a new name, Box sanitizes slashes instead of returning an error. For example, Box replaces a forward slash with an underscore, so copy/slash.txt becomes copy_slash.txt.
Last modified on December 4, 2026