Feature #16714
closedGlobal vars do not work inside flexform_ds.xml but in tca.php
0%
Description
There's the possiblilty to limit the file upload in the backend to certain file extensions. For example
<config>
<type>group</type>
<internal_type>file</internal_type>
<allowed>gif,jpg,jpeg,tif,bmp,pcx,tga,png</allowed>
</config>
According to the example in TYPO3 core API documentation ( http://typo3.org/documentation/document-library/core-documentation/doc_core_api/current/view/4/2/#id2817038 ), one could use $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'] instead of the comma-seperated list of extension.
This works in tca.php but not in flexform_ds.xml
(issue imported from #M4511)
Updated by Martin Kutschker about 18 years ago
What could work is to allow for a CV:<key1>:<key2> (eg CV:GFX:imagefile_ext) syntax to have TYPO3_CONF_VARS access in XML files.
Updated by Clemens Riccabona almost 13 years ago
- Target version deleted (
0)
Any news since 2006??
btw this could be interesting for max_size too (according to $GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize']).
Updated by Alexander Opitz over 11 years ago
- Status changed from New to Needs Feedback
- PHP Version deleted (
4)
As this report is very old, is the handling in newer TYPO3 CMS Versions (like 6.0/6.1) more like you expect it?
Updated by Chris topher over 11 years ago
- Status changed from Needs Feedback to Closed