Die TYPO3 Mailingliste - nicht fragen: lesen!
This is a discussion on [TYPO3] TCA-parameters does not work within the typo3-english@lists.netfielders.de forums, part of the TYPO3-Mailinglists: ENGLISH category; Hallo everybody I would like to set a limitation for the size of image.I tried to config it in ...
|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beitr鋑e | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hallo everybody
I would like to set a limitation for the size of image.I tried to config it in the typo3conf/extTbales.php: $GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size'] = 10*1024; And the localconf.php has included the file: $typo_db_extTableDef_script = 'extTables.php'; But I still can upload images larger than 1MB. Who can tell me what is wrong? Thanks very much __________________________________________________ _______________ MSN 中文网,最新时尚生活资讯,白领聚集门户。 http://cn.msn.com _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
1024kb = 1Mb
10*1024kb = 10Mb?? You can set this parameter with install tool and the result in your local conf should read: $TYPO3_CONF_VARS['BE']['maxFileSize'] = '1024'; Pascal LinTong wrote: > Hallo everybody > > I would like to set a limitation for the size of image.I tried to config it in the typo3conf/extTbales.php: > $GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size'] = 10*1024; > > And the localconf.php has included the file: > $typo_db_extTableDef_script = 'extTables.php'; > > But I still can upload images larger than 1MB. Who can tell me what is wrong? Thanks very much > > __________________________________________________ _______________ > MSN 涓*鏂囩綉锛屾渶鏂版椂灏氱敓娲昏祫璁紝鐧介鑱氶 嗛棬鎴枫 > http://cn.msn.com _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
hallo Pascal
I am sorry that i made this copy mistake. But I do set it as: $GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size'] = '1024'; and i tried $GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size'] = 1024; but it does not work And BE users are allowed to upload large files which are larger than 1MB e.g. video files. So the parameter 'maxFileSize' does not work. But I would like to have a limitation just for image files Thanks very much 2008/8/23 Pascal Cramer <pascal (AT) nospamroguesheep (DOT) nl>: > 1024kb = 1Mb > 10*1024kb = 10Mb?? > > You can set this parameter with install tool and the result in your local conf > should read: > $TYPO3_CONF_VARS['BE']['maxFileSize'] = '1024'; > > Pascal > > LinTong wrote: >> Hallo everybody >> >> I would like to set a limitation for the size of image.I tried to config it in the typo3conf/extTbales.php: >> $GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size'] = 10*1024; >> >> And the localconf.php has included the file: >> $typo_db_extTableDef_script = 'extTables.php'; >> >> But I still can upload images larger than 1MB. Who can tell me what is wrong? Thanks very much >> >> __________________________________________________ _______________ >> MSN 中文网,最新时尚生活资讯,白领聚集门户。 >> http://cn.msn.com > _______________________________________________ > TYPO3-english mailing list > TYPO3-english (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/.../typo3-english -- Best Regards LinTong(Pierre) _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
Hello,
> 1024kb = 1Mb > 10*1024kb = 10Mb?? was also wondering about that yesterday, it's also in my extTables.php LinTong, have you commented it out in your extTables.php? Andreas _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#5
|
|||
|
|||
|
LinTong schrieb:
> hallo Pascal > > I am sorry that i made this copy mistake. But I do set it as: > $GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size'] > = '1024'; > and i tried > $GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size'] = 1024; > > but it does not work > > And BE users are allowed to upload large files which are larger than > 1MB e.g. video files. So the parameter 'maxFileSize' does not work. > But I would like to have a limitation just for image files > > Thanks very much > > 2008/8/23 Pascal Cramer <pascal (AT) nospamroguesheep (DOT) nl>: >> 1024kb = 1Mb >> 10*1024kb = 10Mb?? >> >> You can set this parameter with install tool and the result in your local conf >> should read: >> $TYPO3_CONF_VARS['BE']['maxFileSize'] = '1024'; >> >> Pascal >> >> LinTong wrote: >>> Hallo everybody >>> >>> I would like to set a limitation for the size of image.I tried to config it in the typo3conf/extTbales.php: >>> $GLOBALS['TCA']['tt_content']['columns']['image']['config']['max_size'] = 10*1024; >>> >>> And the localconf.php has included the file: >>> $typo_db_extTableDef_script = 'extTables.php'; >>> >>> But I still can upload images larger than 1MB. Who can tell me what is wrong? Thanks very much >>> it is correct, but may be it's overwritten later. Have a look at BE Admin-Tools->configuration->TCA which size is set. vg Steffen _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#6
|
|||
|
|||
|
I had all nice installed on my server, but now I have moved it to a web
hoster and miss some parts. The following things were done: The Webhoster installed typo3 4.2.1. I downloaded my complete /htdocs tree from my old server. I exported the database into a sql file and downloaded it. I have then: 1. uploaded the directories: /fileadmin (which includes the template) /typo3conf (see below) /typo3temp /uploads The uploaded tree looks like: drwxr-x--- 5 elmit1 elmit1 4.0K May 27 09:31 fileadmin/ lrwxrwxrwx 1 elmit1 elmit1 11 Aug 22 17:24 i.php -> phpinfo.php -rwxr-xr-x 2 elmit1 elmit1 2.8K Jun 11 03:14 index.php* lrwxrwxrwx 1 elmit1 elmit1 19 Aug 22 17:16 indexold.php -> typo3_src/index.php* -rw-r--r-- 1 elmit1 elmit1 16 Aug 22 17:06 phpinfo.php lrwxrwxrwx 1 elmit1 elmit1 15 Aug 22 16:57 t3lib -> typo3_src/t3lib/ lrwxrwxrwx 1 elmit1 elmit1 15 Aug 22 16:57 typo3 -> typo3_src/typo3/ lrwxrwxrwx 1 elmit1 elmit1 16 Aug 22 17:04 typo3_src -> typo3_src-4.2.1// drwxr-xr-x 5 elmit1 elmit1 4.0K Jun 11 03:15 typo3_src-4.2.1/ drwxr-xr-x 4 elmit1 elmit1 4.0K Aug 22 17:12 typo3conf/ drwxr-xr-x 8 elmit1 elmit1 4.0K Aug 22 17:11 typo3temp/ drwxr-xr-x 2 elmit1 elmit1 4.0K Aug 22 16:59 typosource/ drwxr-xr-x 5 elmit1 elmit1 4.0K Aug 22 17:11 uploads/ 2. localconf.php - old website <?php $TYPO3_CONF_VARS['SYS']['sitename'] = 'New TYPO3 site'; // Default password is "joh316" : $TYPO3_CONF_VARS['BE']['installToolPassword'] = 'bacb98acf97e0b6112b1d1b650b84971'; $TYPO3_CONF_VARS['EXT']['extList'] = 'tsconfig_help,context_help,extra_page_cm_options, impexp,sys_note,tstemplate,tstemplate_ceditor,tste mplate_info,tstemplate_objbrowser,tstemplate_analy zer,func_wizards,wizard_crpages,wizard_sortpages,l owlevel,install,belog,beuser,aboutmodules,setup,ta skcenter,info_pagetsconfig,viewpage,rtehtmlarea,cs s_styled_content,t3skin'; $typo_db_extTableDef_script = 'extTables.php'; ## INSTALL SCRIPT EDIT POINT TOKEN - all lines after this points may be changed by the install script! $typo_db_username = 'xxxxx'; // Modified or inserted by TYPO3 Install Tool. $typo_db_password = 'xxxxxxx'; // Modified or inserted by TYPO3 Install Tool. $typo_db_host = 'localhost'; // Modified or inserted by TYPO3 Install Tool. $TYPO3_CONF_VARS['SYS']['encryptionKey'] = 'd93643cc06cc089d646153278d767bba'; // Modified or inserted by TYPO3 Install Tool. $TYPO3_CONF_VARS['SYS']['compat_version'] = '4.2'; // Modified or inserted by TYPO3 Install Tool. $typo_db = 't3_elmit_xx'; // Modified or inserted by TYPO3 Install Tool. $TYPO3_CONF_VARS['BE']['installToolPassword'] = 'dc7b00eef0ac1d3f569eefff054e901e'; // Modified or inserted by TYPO3 Install Tool. $TYPO3_CONF_VARS['SYS']['sitename'] = 'Just me'; // Modified or inserted by TYPO3 Install Tool. $TYPO3_CONF_VARS['GFX']['im_combine_filename'] = 'composite'; // Modified or inserted by TYPO3 Install Tool. $TYPO3_CONF_VARS['GFX']['im_version_5'] = 'im5'; // Modified or inserted by TYPO3 Install Tool. $TYPO3_CONF_VARS['GFX']['TTFdpi'] = '96'; // Modified or inserted by TYPO3 Install Tool. // Updated by TYPO3 Install Tool 27-05-08 21:59:42 $TYPO3_CONF_VARS['EXT']['extList'] = 'css_styled_content,tsconfig_help,context_help,ext ra_page_cm_options,impexp,sys_note,tstemplate,tste mplate_ceditor,tstemplate_info,tstemplate_objbrows er,tstemplate_analyzer,func_wizards,wizard_crpages ,wizard_sortpages,lowlevel,install,belog,beuser,ab outmodules,setup,taskcenter,info_pagetsconfig,view page,rtehtmlarea,t3skin,indexed_search,lumophpincl ude'; // Modified or inserted by TYPO3 Extension Manager. // Updated by TYPO3 Extension Manager 04-06-08 11:12:08 3. localconf.php - new website <?php $TYPO3_CONF_VARS['SYS']['sitename'] = 'New TYPO3 site'; // Default password is "joh316" : $TYPO3_CONF_VARS['BE']['installToolPassword'] = 'bacb98acf97e0b6112b1d1b650b84971'; $TYPO3_CONF_VARS['EXT']['extList'] = 'tsconfig_help,context_help,extra_page_cm_options, impexp,sys_note,tstemplate,tstemplate_ceditor,tste mplate_info,tstemplate_objbrowser,tstemplate_analy zer,func_wizards,wizard_crpages,wizard_sortpages,l owlevel,install,belog,beuser,aboutmodules,setup,ta skcenter,info_pagetsconfig,viewpage,rtehtmlarea,cs s_styled_content,t3skin'; $typo_db_extTableDef_script = 'extTables.php'; ## INSTALL SCRIPT EDIT POINT TOKEN - all lines after this points may be changed by the install script! $typo_db_username = 'xxxxxxx'; // Modified or inserted by TYPO3 Install Tool. $typo_db_password = 'xxxxxxxx'; // Modified or inserted by TYPO3 Install Tool. $typo_db_host = 'localhost'; // Modified or inserted by TYPO3 Install Tool. $TYPO3_CONF_VARS['SYS']['encryptionKey'] = '23693ada67e71ff4119ff0b0be78422d'; // Modified or inserted by TYPO3 Install Tool. $TYPO3_CONF_VARS['SYS']['compat_version'] = '4.2'; // Modified or inserted by TYPO3 Install Tool. $typo_db = 'elmit1_xx'; // Modified or inserted by TYPO3 Install Tool. $TYPO3_CONF_VARS['BE']['installToolPassword'] = 'dc7bffbbf0ac1d3f569eefff054e901e'; // Modified or inserted by TYPO3 Install Tool. // Updated by TYPO3 Install Tool 22-08-08 17:12:15 4. The result: a. The text is all there, but it seems the template is screwed up. b. Comparing the localconf.php files I find encryptionKey different. Should it be the old one? should it be the new one (as it is now)? c. Original localconf.php had also a line with $TYPO3_CONF_VARS['EXT'['extList'] which is missing in the new one. I "thought" it means that I need to find this extensions to install with the Ext Manager, but all these words are not found to import. What do I miss? How can I fix it? Thanks for your help! bye Ronald _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#7
|
|||
|
|||
|
Hello Ronald,
> I have then: > 1. uploaded the directories: > /fileadmin (which includes the template) > /typo3conf (see below) > /typo3temp > /uploads you don't need to upload /typo3temp. Delete its content, I think it'll be better if you start on a new server. > lrwxrwxrwx 1 elmit1 elmit1 11 Aug 22 17:24 i.php -> phpinfo.php you better dissable your phpinfo.php > $TYPO3_CONF_VARS['EXT'['extList'] which is missing in the new one. > > 2. localconf.php - old website > $TYPO3_CONF_VARS['EXT']['extList'] = > 'tsconfig_help,context_help,extra_page_cm_options, impexp,sys_note,tstemplate,tstemplate_ceditor,tste mplate_info,tstemplate_objbrowser,tstemplate_analy zer,func_wizards,wizard_crpages,wizard_sortpages,l owlevel,install,belog,beuser,aboutmodules,setup,ta skcenter,info_pagetsconfig,viewpage,rtehtmlarea,cs s_styled_content,t3skin'; > 3. localconf.php - new website > $TYPO3_CONF_VARS['EXT']['extList'] = > 'tsconfig_help,context_help,extra_page_cm_options, impexp,sys_note,tstemplate,tstemplate_ceditor,tste mplate_info,tstemplate_objbrowser,tstemplate_analy zer,func_wizards,wizard_crpages,wizard_sortpages,l owlevel,install,belog,beuser,aboutmodules,setup,ta skcenter,info_pagetsconfig,viewpage,rtehtmlarea,cs s_styled_content,t3skin'; you see, it's in both files. > Should it be the old one? should it be the new one (as it is now)? just change your DB-connection-values, leave the rest allone > I "thought" it means that I need to find this extensions to install with > the Ext Manager, but all these words are not found to import. Your extensions exist in /typo3conf/ext/ which you uploaded from old one (if you installed them localy), they're integrated in the DB, when you import you rDB-dump to the new DB, have you done this? $TYPO3_CONF_VARS['EXT']['extList'] shows your installed extensions Andreas _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#8
|
|||
|
|||
|
I found it!
Was just a permission problem! bye Ronald _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Themen-Optionen | Thema durchsuchen |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] Parameters in sr_language_menu link | Sergio Catal Gil | typo3-english@lists.netfielders.de | 0 | 21.07.2008 12:24 |
| [TYPO3] Parameters in tt_news link | Sergio Catal Gil | typo3-english@lists.netfielders.de | 0 | 21.07.2008 09:12 |
| [TYPO3] Pass parameters to an extension | Rafael 羖varez | typo3-english@lists.netfielders.de | 3 | 18.06.2008 01:10 |
| [TYPO3] GET parameters with [] | 嗅磲汩珧 曙眙犷掾 | typo3-english@lists.netfielders.de | 5 | 07.06.2008 00:08 |
| [TYPO3] How do I add url-parameters to a breadcrumb menu | PEF | typo3-english@lists.netfielders.de | 0 | 17.04.2007 11:23 |