Why can’t I upload files with file names of more than 83 Chinese characters (or more than a certain number of other characters)?


Datum poslední úpravy: 2022-12-21

Applicable Products

  • QTS NAS series

Root Cause

The maximum file name length (including file extension) is limited to 255 bytes under the ext4 file system on the QNAP NAS. 

A regular Chinese character takes up 3 bytes in UTF-8 encoding, therefore 84 regular Chinese characters are 252 bytes. A file extension of 3 letters adds 4 more bytes (e.g., ‘.txt’, which has 1 byte per ASCII character including the dot), making the result 256 bytes that is1 byte over the limit.


Details

The number of bytes per character may vary between different character sets for different languages, as well as within a language (e.g., some special Chinese characters require 4 bytes). And because file extensions can also contain fewer or more than 3 letters, the actual character limit may vary on a case-by-case basis.


Further Reading

About the ext4 file system 

Byl tento článek užitečný?

78% lidí si myslí, že to pomáhá.
Děkujeme vám za vaši zpětnou vazbu.

Sdělte nám prosím, jak lze tento článek vylepšit:

Pokud chcete poskytnout další zpětnou vazbu, uveďte ji níže.

Zvolte specifikaci

      Zobrazit více Zobrazit méně

      Tato stránka v jiných zemích / oblastech:

      open menu
      back to top