The maximum length of MIMEType when saving the type in the database

What do people use as the length of the MIMEType field in their databases? The longest we have seen so far is 72 bytes:

application/vnd.openxmlformats-officedocument.wordprocessingml.document 

but I'm just waiting for a longer one. We are currently using 250, but has anyone seen a longer MIMEType than this?

Edit: from the accepted answer 127 for the type and subtype each, so 254 max, plus '/' is the limit of 255 for the combined value.

+79
database mime-types
Mar 13 '09 at 17:05
source share
1 answer

In accordance with RFC 4288, "Media Type Specifications and Registration Procedures," enter (for example, "application") and a subtype (for example, "vnd ...") and can be no more than 127 characters . You do the math :)

Edit:. In the meantime, this document has deprecated RFC 6838 , which does not change the maximum size but adds a note:

Also note that although this syntax allows names up to 127 characters, implementation limits may contain such long names problematic. For this reason, <type-name> and <subtype-name> SHOULD be limited to 64 characters.

+116
Mar 13 '09 at 17:28
source share



All Articles