[Typo3] pro and con of increasing max_size for filelinks
Eric Blom
ericb at piap.com
Sun Jun 12 00:24:17 CEST 2005
What are the pros and cons of increasing the max file size for
filelinks. Or in general modifying any value in TCA?
Some times there are many ways to accomplish something and I want to
build good habits with Typo3. I don't know if modifying TCA is a bad
habit to get in to.
Today I ran into the problem where tt_content gives an error due to a
file of larger than 9.8 MB being attached to the filelinks content
element. I searched the email list archives and found some discussion
of this. However, while it is clear that increasing the value will
solve my problem I'm not sure if it is a good idea. Can someone give a
brief overview of when changing values in the TCA is a good idea. I
have this nagging feeling that if something is not really easy to
change, I.E it is in the install options, there might be a good reason
not to change it.
I'm also curious why files are copied by Typo3 from fileadmin/... to
uploads/media/... I have some 60+ MB files that I have in fileadmin
that are getting copied into uploads/media now. Am I doing something
wrong? It seems like a waste of disk space.
Cheers,
Eric
PS -- For those of you that are wondering what the solution is to the
file size problem in filelinks here is what I did.
in typo3conf/localconf.php add
$typo_db_extTableDef_script = 'extTables.php';
in typo3conf/extTables.php add
// Raise file size of filelinks content module to 100 MB
$GLOBALS['TCA']['tt_content']['columns']['media']['config']['max_size']
= 100*1024;
At the top of extTables.php you will see some comments on modifying TCA
using this method.
Here are some relevant messages from the english list archive.
How do I enable subtitle on shortcut pages
http://typo3.org/documentation/mailing-lists/english-main-list-archive/
thread/24996/?
tx_maillisttofaq_pi1%5Bsword%5D=typo_db_extTableDef_script%20&tx_maillis
ttofaq_pi1%5Banswered_only%5D=0&tx_maillisttofaq_pi1%5Bmode%5D=1
Changing values in $TCA
http://typo3.org/documentation/mailing-lists/english-main-list-archive/
thread/12744/?
tx_maillisttofaq_pi1%5Bsword%5D=changing%20tables.php%20TCA&tx_maillistt
ofaq_pi1%5Banswered_only%5D=0&tx_maillisttofaq_pi1%5Bmode%5D=1
More information about the TYPO3-english
mailing list