[TYPO3] TCA-parameters does not work
Steffen Kamper
info at sk-typo3.de
Sat Aug 23 16:21:01 CEST 2008
LinTong schrieb:
> 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
>>>
it is correct, but may be it's overwritten later. Have a look at BE
Admin-Tools->configuration->TCA which size is set.
vg Steffen
More information about the TYPO3-english
mailing list