allowed¶
-
allowed (type => file)
¶ -
- Path
-
$GLOBALS['TCA'][$table]['columns'][$field]['config']
- type
-
string / array
- Scope
-
Proc. / Display
One or more (comma-separated) of the following reserved strings:
common-image-types
- Gets replaced with the value from
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
. common-text-types
- Gets replaced with the value from
$GLOBALS['TYPO3_CONF_VARS']['SYS']['textfile_ext']
. common-media-types
- Gets replaced with the value from
$GLOBALS['TYPO3_CONF_VARS']['SYS']['mediafile_ext']
.
Additionally, specific allowed file extensions can be added (comma separated), for example
'common-image-types, common-text-types, gz, zip
.You can also use the array notation of allowed file extensions, for example
['jpg','png','svg']
or['common-image-types', 'gz', 'zip']
.
New in version 12.4.14
Due to a bug, the array notation only properly works since TYPO3 v12.4.1 (and 13.1.0) and upwards. Use the string notation for earlier versions instead.