Skip to content

vcard / vcf mime type using Apache instead of IANA #388

Open
@garvinhicking

Description

@garvinhicking

As a member of the TYPO3 project, we use the library for MIME type operations. Thank you for providing this helpful library!

During implementing a bugfix for a mismatching MIME type mapping, we found out this stems from an outdated assignmend in the db.json file:

  "text/x-vcard": {
    "source": "apache",
    "extensions": ["vcf"]
  },

According to IANA (https://www.iana.org/assignments/media-types/text/vcard and https://www.rfc-editor.org/rfc/rfc6350.html) the "proper" MIME type for this would be "text/vcard", and not "text/x-vcard" (deprecated).

https://www.iana.org/assignments/media-types/media-types.xhtml also lists "text/vcard" for the ".vcard" extension and is contained in db.json.

PHP for example also returns "text/vcard" in the mime_content_type() or finfo_file() functions.

Would you agree this is a mismatch that could be addressed?

(Reference to our bugtracker: https://review.typo3.org/c/Packages/TYPO3.CMS/+/89779)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions