[TYPO3-core] RFC: tt_content: No image files larger than 1 MBytepossible
Franz Holzinger
franz at fholzinger.com
Wed Mar 1 10:32:02 CET 2006
Martin Kutschker a écrit :
>Franz Holzinger <franz at fholzinger.com> writes on
>Wed, 01 Mar 2006 10:09:09 +0100 (MET):
>
>
>
>>This is a CVS patch request.
>>
>>It is not possible to use image files larger than 1 MByte in the image
>>field of tt_content.
>>If you set
>>$TYPO3_CONF_VARS["BE"]["maxFileSize"] = '10000';
>>in the file typo3conf/localconf.php then this is not considered.
>>
>>See the full discussion in German about this:
>>
>>http://www.typo3.com/documentation/mailing-lists/german-user-list-archive/thread/97843/?tx_maillisttofaq_pi1%5Bpointer%5D=10&tx_maillisttofaq_pi1%5Bmode%5D=1
>>
>>
>>
>>The attached patch will solve this issue.
>>
>>
>
>
>What's the current use of $TYPO3_CONF_VARS["BE"]["maxFileSize"]? I am not sure if it's the correct way to apply this value here.
>
>
>
config_default.php:
'maxFileSize' => '10000', // Integer. If set this is the max
fileoperation filesize in kb's set in t3lib/extFileFunctions.
It is used in class.t3lib_extfilefunc.php:
$maxFileSize =
intval($GLOBALS['TYPO3_CONF_VARS']['BE']['maxFileSize']);
if ($maxFileSize>0) {
$this->maxCopyFileSize = $maxFileSize;
$this->maxMoveFileSize = $maxFileSize;
$this->maxUploadFileSize = $maxFileSize;
}
Install-Tool uses it:
if ($upload_max_filesize<10000*1024) {
$this->message($ext, 'Max Upload filesize too small?',"
<i>upload_max_filesize=".ini_get('upload_max_filesize')."</i>
By default TYPO3 supports uploading, copying and moving
files of sizes up to 10000 kb (10 MB) (You can alter the TYPO3 defaults
by the config option TYPO3_CONF_VARS[BE][maxFileSize]).
Your current value is below this, so at this point, PHP
sets the limits for uploaded filesizes and not TYPO3.
<strong>Notice:</strong> The limits for filesizes
attached to database records are set in the tables.php configuration
file (\$TCA) for each group/file field.
",1);
}
Franz
More information about the TYPO3-team-core
mailing list