[TYPO3] TCA-parameters does not work

LinTong pcu84424 at gmail.com
Sat Aug 23 09:10:32 CEST 2008


hallo Pascal

I am sorry that i made this copy mistake. But I do set it as:
 $GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size']
= '1024';
and i tried
 $GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size'] = 1024;

but it does not work

And BE users are allowed to upload large files which are larger than
1MB e.g. video files. So the parameter 'maxFileSize' does not work.
But I would like to have a limitation just for image files

Thanks very much

2008/8/23 Pascal Cramer <pascal at nospamroguesheep.nl>:
> 1024kb = 1Mb
> 10*1024kb = 10Mb??
>
> You can set this parameter with install tool and the result in your local conf
> should read:
> $TYPO3_CONF_VARS['BE']['maxFileSize'] = '1024';
>
> Pascal
>
> LinTong wrote:
>> Hallo everybody
>>
>> I would like to set a limitation for the size of image.I tried to config it in the typo3conf/extTbales.php:
>>  $GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size'] = 10*1024;
>>
>> And the localconf.php has included the file:
>> $typo_db_extTableDef_script = 'extTables.php';
>>
>> But I still can upload images larger than 1MB. Who can tell me what is wrong? Thanks very much
>>
>> _________________________________________________________________
>> MSN 中文网,最新时尚生活资讯,白领聚集门户。
>> http://cn.msn.com
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english



-- 
Best Regards
LinTong(Pierre)


More information about the TYPO3-english mailing list