Typo3 media files with more then 10MB

By default, Typo3 allows only media files (images, videos, etc. ) with not more than 10 MB.
To raise this, there are a couple of oportunities.

The most recommendable on is to edit the file typo3conf/extTables.php to protect the modification during update processes
In this file, there is already a hint about such a modification for image files. To cover all possible media files, one should add the following lines.

$GLOBALS[‘TCA’][‘tt_content’][‘columns’][‘image’][‘config’][‘max_size’] = 50*1024;
$GLOBALS[‘TCA’][‘tt_content’][‘columns’][‘media’][‘config’][‘max_size’] = 50*1024;
$GLOBALS[‘TCA’][‘tt_content’][‘columns’][‘multimedia’][‘config’][‘max_size’] = 50*1024;

where the 50 stands for 50 MB in this case.
Note: if you plan to upload such big files instead of using a FTP based file transmission, you should check your php configuration for the allowed max upload size.

Alternative options to allow multimedia files with more then 10MB file size are:
a) installing the extension swg_tca_ext_10mb
b) modifying the typo3 core file: typo3conf/ext/sr_quicktime/ext_tables.php by commenting the following line.
// Load TYPO3 Core Array (TCA) for tt_content t3lib_div::loadTCA(“tt_content”); $TCA[‘tt_content’][‘columns’][‘image’][‘config’][‘max_size’] = ‘10485760’; $TCA[‘tt_content’][‘columns’][‘media’][‘config’][‘max_size’] = ‘10485760’; $TCA[‘tt_content’][‘columns’][‘multimedia’][‘config’][‘max_size’] = ‘10485760’;

Both of those alternatives are not recommended. Modifying the core is always a bad style. And installing an extension for this purpose is an unnecessary overhead.

Leave a Comment