Review 12.4 Merged

90596[TASK] Add more common MIME type replacements and file extensions

Garvin Hicking CR +2 V +2 Easy +32 −1 updated 09/08/25, 17:30

Commit message

MIME type recognition is not easy due to differences in Apache
vs. IANA defaults. Our mime-db integration has some mismatches
with what PHP's FileInfo or local OSes resolve by default.

To make this less painful, we manage our list in:

```
$GLOBALS['TYPO3_CONF_VARS']['SYS']['FileInfo']['mimeTypeCompatibility']
```

With this patch, we add more common types along the way:

* .srt (Video subtitles)
* .json
* .exe (not allowed by default, though)

This patch only deals with MIME type detection. #107398 and #107399
are follow-ups to integrate this with `textfile_ext`, `mediafile_ext`
and `miscfile_ext`.

Review

  • Code review CR +2 Done
    • Garvin Hicking +2
  • Verified V +2 Done
    • Garvin Hicking +2
    • core-ci +1 CI

Issues 6

Files 1

Review log 34

  1. Garvin Hicking commented on patch set 1 09/08/25, 17:17

    Cherry Picked from branch main.
  2. core-ci voted on patch set 1 V +1 09/08/25, 17:25 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/84637

  3. Garvin Hicking voted on patch set 1 CR +2 V +2 09/08/25, 17:30

  4. Garvin Hicking merged patch set 2 09/08/25, 17:30