Bug #45634
closed
Element browser shows no files if value for allowed in TCA is *
Added by Axel Brand almost 12 years ago.
Updated over 9 years ago.
Category:
Backend User Interface
Description
In my TCA of an extension:
'file' => array(
'exclude' => 0,
'label' => 'LLL:EXT:gehc_products/Resources/Private/Language/locallang_db.xlf:tx_gehcproducts_domain_model_download.file',
'config' => array(
'type' => 'group',
'internal_type' => 'file',
'uploadfolder' => 'uploads/tx_gehcproducts',
'allowed' => '*',
'disallowed' => 'php',
'size' => 5,
),
),
If allowed is set to '*', there are no files shown in the element browser.
I set it to 'pdf', then all pdf-files are shown.
But I need the wildcard.
- Status changed from New to Needs Feedback
- Target version deleted (
6.0.3)
From the documentation at http://docs.typo3.org/typo3cms/TCAReference/Reference/Columns/Group/Index.html it says:
'disallowed':
Default value is '*' which means that anything file-extension which is not allowed is denied.
If you set this value (to for example "php,php3") AND the "allowed" key is an empty string all extensions are permitted except ".php" and ".php3" files
Can you try to remove the * and try it with an empty string?
It works with an empty string.
Fine...thank you!
Same problem in 6.0.5.
An empty string instead of an asterisk works.
I wonder if this is a bug or a feature? Why did the behaviour change? Seems not really logic to me...
- Status changed from Needs Feedback to New
- Is Regression set to No
Should we accept the asterix in TCA on file.config.allowed? I think yes, as it is accepted in file.config.disallowed.
In the past (4.5) the setting "*" worked. So in my eyes this is a bug, which should be added to 6.2
- Status changed from New to Needs Feedback
I can't reproduce this on current 6.2 and master.
Can you recheck if this is still a problem for you?
I can't reproduce the bug anymore, too.
Thanx!
- Status changed from Needs Feedback to Closed
Also available in: Atom
PDF