Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the maximum length of a filename in S3

Maybe I'm blind but i can't find, in S3 documentation, the maximum file name length that can be uploaded in S3.

like image 830
ohe Avatar asked Jul 29 '11 08:07

ohe


People also ask

What is the maximum length of the filename in?

The maximum combined length of the file name and path name is 1024 characters. The Unicode representation of a character can occupy several bytes, so the maximum number of characters that a file name might contain can vary. On Linux: The maximum length for a file name is 255 bytes.

Is there a limit to the number of files in S3 bucket?

S3 provides unlimited scalability, and there is no official limit on the amount of data and number of objects you can store in an S3 bucket. The size limit for objects stored in a bucket is 5 TB.

What is the maximum length for a filename under Linux?

Linux OS has a 255 bytes limit of a file name, not exactly 255 characters. There is a major difference between character and bytes in file naming.


1 Answers

As follows from the Amazon documentation,

These names are the object keys. The name for a key is a sequence of Unicode characters whose UTF-8 encoding is at most 1024 bytes long.

The max filename length is 1024 characters. If the characters in the name require more than one byte in UTF-8 representation, the number of available characters is reduced.

like image 109
S3 Browser Team Avatar answered Oct 19 '22 21:10

S3 Browser Team