Issue Bug Closed

#106916Allow MIME type 'text/vcard' for .vcf file uploads in file list

Steffen W 06/20/25, 09:53 updated 12/02/25, 14:22

Description

Hello

it is currently not possible to upload a “.vcf” file with the MIME type ‘text/vcard’ via the file list.

If I understand https://datatracker.ietf.org/doc/html/rfc6350#section-3 correctly, this would be the latest MIME type.
Unfortunately I have not found another and better source

Possible solution:
Add 'text/vcard' => ['vcf']
https://github.com/TYPO3/typo3/blob/v13.4.14/typo3/sysext/core/Classes/Resource/MimeTypeCollection.php

I thought https://docs.typo3.org/c/typo3/cms-core/main/en-us/Changelog/12.4.x/Important-106735-FileMIMETypeCompatiblityMapping.html#important-106735-file-mime-type-compatiblity-mapping was already sufficient.

Unfortunately $GLOBALS['TYPO3_CONF_VARS']['SYS']['FileInfo']['mimeTypeCompatibility']['text/vcard']['vcf'] = 'text/vcard'; in the additional.php does not work in my system

Thanks!

Reviews 13

History 712

  1. Gerrit Code Review pushed patch set 1 for main to change 89779 status Accepted Under Review <span data-processor="relativetime" data-value="2025-06-20T12:33:18+00:00" > 06/20/25, 12:33 </span>

  2. Garvin Hicking commented <span data-processor="relativetime" data-value="2025-06-23T15:58:51+00:00" > 06/23/25, 15:58 </span>

    Please note: You should be able to adapt this via:

    $GLOBALS['TYPO3_CONF_VARS']['SYS']['FileInfo']['mimeTypeCompatibility']
      ['text/vcard']['vcf'] = 'text/x-vcard';

    Our pending bugfix will need to wait a bit because the cause of this could be related to the underlying library which in turn uses RFC/IANA sources that do not properly map “text/vcard” mime types, as they are reported from PHP.

  3. Garvin Hicking commented and changed status Under Review Resolved done 0 % 100 % <span data-processor="relativetime" data-value="2025-06-25T14:00:14+00:00" > 06/25/25, 14:00 </span>

    Applied in changeset commit:5d1604f1d1ccae17456129a06923819ba91986bc.