Maximum length of a MIME Content-Type header field?

前端 未结 3 514
野性不改
野性不改 2020-12-30 19:18

I\'m just designing the schema for a database table which will hold details of email attachments - their size in bytes, filename and content-type (i.e. \"image/jpg\", \"audi

3条回答
  •  长情又很酷
    2020-12-30 19:41

    In RFC 6838 which is latest standard and obsoletes RFC4288, there is a following statement.

    "Also note that while this syntax allows names of up to 127 characters, implementation limits may make such long names problematic. For this reason, and SHOULD be limited to 64 characters."

    64+1+64 = 129.

    But I suspect the standard should mean 63+1+63=127.

    link: https://tools.ietf.org/html/rfc6838#section-4.2

提交回复
热议问题