Project

General

Profile

Actions

Bug #23842

closed

buggy initialization of flash uploader when only certain file extensions are allowed

Added by Andreas Kießling about 14 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-10-26
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.5
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

16130_v1_trunk.patch (983 Bytes) 16130_v1_trunk.patch Administrator Admin, 2010-10-26 10:57
16130_v1_4-3.patch (983 Bytes) 16130_v1_4-3.patch Administrator Admin, 2010-10-26 11:07
Actions

Also available in: Atom PDF