Task #105908
openSimplify TCA file extension preparation from placeholders
0%
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.
Updated by Mathias Brodala 15 days ago
- Related to Feature #98479: New TCA type "file" added
Updated by Gerrit Code Review 15 days ago
- Status changed from New to Under Review
Patch set 1 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87686
Updated by Gerrit Code Review 15 days ago
Patch set 2 for branch main of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/c/Packages/TYPO3.CMS/+/87686