#105908Simplify TCA file extension preparation from placeholders
Description
The TCA file field supports the placeholders common-image-types, common-media-types and common-text-types as values for allowed and disallowed.
These are resolved from $GLOBALS['TYPO3_CONF_VARS'] within the TcaPreparation::prepareFileExtensions() method.
Currently this happens with with a RegEx match and inline mapping and a special case for common-image-types to use GFX instead of SYS.
This is hard to read and unnecessarily complex. Also it makes it harder to spot these magic strings and the particular $GLOBALS['TYPO3_CONF_VARS'] access in case of changes afterwards.
For these reasons, this should be simplified.
Reviews 1
Related issues 1
History 13
-
Mathias Brodala changed Related to #98479 <span data-processor="relativetime" data-value="2025-01-10T07:57:56+00:00" > 01/10/25, 07:57 </span>
-
Gerrit Code Review pushed patch set 1 for main to change 87686 status
NewUnder Review <span data-processor="relativetime" data-value="2025-01-10T07:59:21+00:00" > 01/10/25, 07:59 </span> -
Gerrit Code Review pushed patch set 2 for main to change 87686 <span data-processor="relativetime" data-value="2025-01-10T08:02:48+00:00" > 01/10/25, 08:02 </span>