Bug #23842
closedbuggy initialization of flash uploader when only certain file extensions are allowed
0%
Description
With $TYPO3_CONF_VARS['BE']['fileExtensions']['webspace']['allow'] = 'png,gif,jpg,jpeg,pdf' you can configure certain allowed filetypes. The flashuploader takes this setting into account and limits what you can actually select, but during its initialization, some errors happen.
When you set this option in your extTables.php and open the uploader, you just get a message with a hint for the maximum possible filesize for the upload. Close the uploader and open it again: now you see a message, which filetypes are allowed.
When you have set it to the mentioned filetypes, you will now see only 'png,gif,jpg,jpeg', because the used function TYPO3.helpers.split to create the required format for the settings for the uploader is buggy and imho not needed at all, since js already has a split function.
Solution: init the settings for the restrictions when the flash uploader is called and use the js built in split function.
That helper method from common.js should be removed and i only found it to be used from the flash uploader. The error is present since the uploader was first introduced in 4.3
(issue imported from #M16130)
Files
Updated by Steffen Gebert about 14 years ago
Committed to
- trunk rev. 9285
- 4-4 rev. 9286
- 4-3 rev. 9287
Thanks for your contribution, Andreas!