Review main Merged

90577[TASK] Extend allowed list of uploadable `mediafile_ext` files

Garvin Hicking CR +2 V +2 Normal +50 −1 updated 09/08/25, 05:15

Commit message

The default configuration for
`$GLOBALS['TYPO3_CONF_VARS']['SYS']['mediafile_ext']`
has been enhanced with a list of formats commonly uploaded into
web-based CMS systems like TYPO3:

*  3gp
*  aac
*  aif
*  avif
*  heic
*  ico
*  m4a
*  m4v
*  mov
*  psd

This list is only enhanced for systems where the said configuration
option has not been customized already.

Enhancing this list allows to upload files with these extensions into
the file list (and use these files in TCA fields with
"common-media-types"), when the security flag
`security.system.enforceAllowedFileExtensions` is enabled.

This can be a relevant change, if these file types are now used in
records or content elements, that might not expect files of these types
for further operation (like frontend display).

Integrators need to ensure that all uploaded file types are handled
accordingly (e.g. embedding "mov" as a video, "ico" as an image, and
"psd" as a download), or have an appropriate fallback.

The `<f:media>` ViewHelper for example would iterate possible
`Renderer` implementations, that can deal with several of the
mentioned files (their MIME types), and try to render a file as an
image as fallback.

Due to this, the patch is only aimed at main.

Review

  • Code review CR +2 Done
    • Georg Ringer +2
    • Jörg Bösche +1
    • Simon Schaufelberger +1
  • Verified V +2 Done
    • Georg Ringer +2
    • Simon Schaufelberger +1
    • core-ci +1 CI

Issues 6

Files 2

Review log 68

  1. Garvin Hicking uploaded patch set 1 09/05/25, 10:18

  2. Garvin Hicking updated the commit message in patch set 2 09/05/25, 10:19

  3. core-ci voted on patch set 1 V +1 09/05/25, 10:27 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/84454

  4. core-ci voted on patch set 2 V +1 09/05/25, 10:28 Core CI is happy: https://git.typo3.org/typo3/CI/cms/-/pipelines/84455

  5. Simon Schaufelberger voted on patch set 2 CR +1 V +1 09/05/25, 18:43

  6. Jörg Bösche voted on patch set 2 CR +1 09/07/25, 18:32

  7. Georg Ringer voted on patch set 2 CR +2 V +2 09/08/25, 05:15

  8. Georg Ringer merged patch set 3 09/08/25, 05:15