[TYPO3-core] RFC #10717: No simple way to get the maximum upload size in TYPO3
Steffen Ritter
info at rs-websystems.de
Sun Mar 22 15:33:32 CET 2009
Benjamin Mack schrieb:
> Hey,
>
> this is a SVN patch request.
>
> Branches: trunk.
>
> BT reference: http://bugs.typo3.org/view.php?id=10717
>
> Problem: This is a pre-requisite for the mass uploader. I often find it
> difficult to always check if the upload_max_filesize or post_max_size is
> lower than the $TYPO3_CONF_VARS['BE']['maxFileSize']. I introduced this
> feature so we can use it all through the backend in various cases to
> have a unified check. I found that without this function, the devs who
> want to upload always need to check against the various PHP limitation
> himself.
>
> Solution: Add a static function to t3lib_div (yes, I did not find a more
> suitable class to put in, that is always available).
>
> Notes: This can be helpful in a lot of cases. Also, I want to commit
> this separately before the mass uploader comes as it will make the "big
> part" easier to review.
>
> All the best,
> Benni.
>
+1 by testing.
But you do 2 times same stuff... analyzing an "natural size limit".
would like to see this extracted into a separate function, which also
could be useful in t3lib_div...
so far
Steffen
More information about the TYPO3-team-core
mailing list