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/10/11 in Code, PHP, Typo3

Try a sample pack of 10 Business Cards for free from MOO

Upload images for the first side of your card. Choose up to 10 different images or designs. We accept high resolution JPEG, PNG, GIF or PDF files. Free standard shipping is included.


add comment

What's the matter cat got your tongue? Be the first to comment...

Step 1. : Login details

about you.

Step 2. : Password

your say.

Step 3. : Email details


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.