Fixed bug #16130: buggy initialization of flash uploader when only certain file exten...
authorSteffen Gebert <steffen.gebert@typo3.org>
Fri, 5 Nov 2010 18:11:38 +0000 (18:11 +0000)
committerSteffen Gebert <steffen.gebert@typo3.org>
Fri, 5 Nov 2010 18:11:38 +0000 (18:11 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/branches/TYPO3_4-4@9286 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/js/flashupload.js

index 16741dc..38db6c2 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2010-11-05  Steffen Gebert  <steffen@steffen-gebert.de>
+
+       * Fixed bug #16130: buggy initialization of flash uploader when only certain file extensions are allowed (Thanks to Andreas Kiessling)
+
 2010-11-04  Xavier Perseguers  <typo3@perseguers.ch>
 
        * Fixed bug #15656: indexed_search: Template corrections of #14130 not applied to the CSS template (Thanks to Lorenz Ulrich)
index 83e7a22..cbb0208 100644 (file)
@@ -282,6 +282,7 @@ Ext.onReady(function() {
                        swfConfig.post_params.vC         = top.TS.veriCode;
                        swfConfig.file_types_description = Ext.value(this.uploadFileTypesDescription, this.swfDefaultConfig.file_types_description);
                        this.setFileTypeRestrictions(this.uploadFileTypes);
+                       swfConfig.file_types = this.swfDefaultConfig.file_types;
                        return swfConfig;
                },
                
@@ -291,7 +292,7 @@ Ext.onReady(function() {
                 */
                setFileTypeRestrictions: function(typo3FileTypes) {
                        if (typo3FileTypes.allow && typo3FileTypes.allow !== '' && typo3FileTypes.allow !== '*') {
-                               var allowedFiles = TYPO3.helpers.split(typo3FileTypes.allow, ',');
+                               var allowedFiles = typo3FileTypes.allow.split(',');
                                this.swfDefaultConfig.file_types = '*.' + allowedFiles.join(';*.');
                        }
                        if (typo3FileTypes.deny && typo3FileTypes.deny !== '') {