[TYPO3-core] RFC #10717: No simple way to get the maximum upload size in TYPO3

Steffen Kamper info at sk-typo3.de
Wed Mar 18 15:08:15 CET 2009


Hi Benni,

i think this function should be placed in extfilefunc as this info is 
only needed for file operations, where the class is instanced anyway in 
most case, when not it's easy to call this static function.

What do you think?

vg Steffen

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.
> 


More information about the TYPO3-team-core mailing list