[TYPO3-core] RFC: Fix bug #3412: Max. filesize for images in 'text with image' and 'images only' CEs has too small default value

Ernesto Baschny [cron IT] ernst at cron-it.de
Tue Feb 13 10:29:27 CET 2007


Michael Stucki wrote: on 13.02.2007 08:39:

> Problem:
> Some $TCA definitions for file uploads have default values of 1 or 2 MB.
> 
> Solution:
> I suggest raising it to 10MB which seems to be a common wish.

I would differenciate between their uses:

> --- typo3/sysext/cms/ext_tables.php	(Revision 2015)
> +++ typo3/sysext/cms/ext_tables.php	(Arbeitskopie)
> @@ -400,7 +400,7 @@
>  				'type' => 'group',
>  				'internal_type' => 'file',
>  				'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,txt,css',
> -				'max_size' => '2000',
> +				'max_size' => '10000',
>  				'uploadfolder' => 'uploads/media',
>  				'show_thumbs' => '1',
>  				'size' => '3',

This is pages.media. Any stuff can be uploaded here, most common are
images, but also PDFs etc might be relevant here.

+1 for a default of 5000 here.

> --- typo3/sysext/cms/tbl_tt_content.php	(Revision 2015)
> +++ typo3/sysext/cms/tbl_tt_content.php	(Arbeitskopie)
> @@ -391,7 +391,7 @@
>  				'type' => 'group',
>  				'internal_type' => 'file',
>  				'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'],
> -				'max_size' => '1000',
> +				'max_size' => '10000',
>  				'uploadfolder' => 'uploads/pics',
>  				'show_thumbs' => '1',
>  				'size' => '3',

This is tt_content.image. There might be people uploading TIFs oder
other stuff which TYPO3 will render as JPEG/GIF. An uncompressed TIF can
be pretty large. But I would limit that nevertheless:

+1 for a default of 5000.

> --- typo3/sysext/cms/tbl_cms.php	(Revision 2015)
> +++ typo3/sysext/cms/tbl_cms.php	(Arbeitskopie)
> @@ -699,7 +699,7 @@
>  				'type' => 'group',
>  				'internal_type' => 'file',
>  				'allowed' => $GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext'].',html,htm,ttf,pfb,pfm,txt,css,tmpl,inc,ico,js',
> -				'max_size' => '1000',
> +				'max_size' => '10000',
>  				'uploadfolder' => 'uploads/tf',
>  				'show_thumbs' => '1',
>  				'size' => '7',

This is sys_template.resources. This also can be anything, from PDFs,
TTFs, Images, etc.

+1 for a default of 5000.


Ok, at the end all three defaults ended up as 5000. :) But maybe others
have different feelings about the different fields. I would also try to
announce as a huge new feature the possibility to set TCA through
PageTS, which is pretty cool stuff indeed.

Cheers,
Ernesto


More information about the TYPO3-team-core mailing list