Increasing the Number of File Links in Typo3
This is a problem I discovered when uploading files for a client into a Typo3 site. By default Typo3 sets a limit of 10 files it allows to be uploaded. If you try and upload any more you receive a generic error message in the form of a yellow triangle warning.
To raise the limit for the number of files that can be uploaded from 10 to 100 (or whatever value you want to set) we need to add a line of code preferably into ext_tables.php in one of your plugins or alternately directly into /typo3conf/extTables.php.
# Raise limit of files that can be uploaded from 10 to 100
$GLOBALS[‘TCA’][‘tt_content’][‘columns’][‘media’][‘config’][‘maxitems’] = ‘100’;
Note that if adding the line to the file /typo3conf/extTables.php make sure the following line appear in typo3conf/localconf.php:
$typo_db_extTableDef_script = ‘extTables.php’;
Note: The original $TCA definition is in /typo3/sysext/cms/tbl_tt_content.php
This article was posted on 21 October 2011 in Code, PHP, Typo3
That's the end of this article. I hope you found it useful. If you're enjoyed this article why don't you have a look around the archives, where you can find some more tutorials, tips and general ramblings.