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

Save a massive 36% on a subscription to .net magazine!

We love .net magazine (known as "Practical Web Design" outside the UK) and have teamed up with Future Publishing to get our readers up to a massive 36% off a years subscription.

comments

add comment

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

x
Step 1. : Login details

about you.

Step 2. : Password

your say.

Step 3. : Email details

preferences.


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.