[TYPO3-dam-devel] RFC: 0006632: DAM media browser upload not working when disallowed is set

Peter Kuehn [wmdb] peter.kuehn at wmdb.de
Tue Nov 13 17:16:13 CET 2007


This is a svn patch request.

Type: bugfix

Steps to reproduce:
- for testing simply add 
$TCA['tt_content']['columns']['tx_damttcontent_files']['config']['disallowed_types'] 
= 'php,php3'; to dam_ttcontent
- create a new content element fx. type image
- open the media browser

Expected behaviour:
- no js error ;)

Observed behaviour:
js-error: missing ; before statement
var res = 
parent.window.opener.php,php3("gif,jpg,jpeg,tif,bmp,pcx,tga,png,pdf,...

Reason:
tx_dam_tceFunc->getSingleField_typeMedia() adds the disallowed types as 
the sixt part of the bparams-parameter of the elementbrowser call.
this slot is reserved for IRRE - probably since 4.1.2 - in 
typo3/class.browse_links.php line 967.


Branches:
Head

Bugtracker reference: http://bugs.typo3.org/view.php?id=6697
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: 6632.fix.patch
Url: http://lists.netfielders.de/pipermail/typo3-team-dam/attachments/20071113/f8cbfa09/attachment.txt 


More information about the TYPO3-team-dam mailing list