[TYPO3-dev] Max File Size / Upload Limit
Benjamin Mack
mack at xnos.org
Wed Dec 12 18:50:19 CET 2007
Hey guys,
have you ever noticed that you have to check two (or maybe more) places
when you want to upload big files in TYPO3?
We have:
* PHP.ini
;Maximum allowed size for uploaded files.
upload_max_filesize = 2M
; Maximum size of POST data that PHP will accept.
post_max_size = 8M
=> don't know if this taken in account
* TYPO3 Installer
maxFileSize = 10240
* TCA
Upload Limit for Images
$TCA['tt_content']['columns']['image']['config']['max_size'] = 20000;
What do you think, can we consolidate something here? Because: I had the
problem that I set the installer option to 30 MB but it did not work
because the php.ini was wrong.
So if no one tells me a good reason, I propose this approach:
1) The option "maxFileSize" is going to get deprecated, and it is set
automatically to a new function "getMaxUploadFilesize()" (that does a
"ini_get(upload_max_filesize)") and change all places in the core from
maxFileSize to this function, this option will be kept for a couple of
more versions in core, but not in the installer options list.
2) For TCA: If no one sets a "max_size" limit for a configuration
option, the "getMaxUploadFilesize" is used in general. Then, we remove
the max_size from tt_content-images.
3) The new installer checks if the PHP.ini setting is set too low or
could have a small area about uploads / limits / timeout limits etc.
What do you think?
--
greetings,
benni.
-SDG-
www.xnos.de // www.xnos.org
More information about the TYPO3-dev
mailing list