[TYPO3-core] RFC #10717: No simple way to get the maximum upload size in TYPO3
Benjamin Mack
benni at typo3.org
Wed Mar 18 12:07:22 CET 2009
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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 10717_add_fileupload_function.patch
Type: text/x-diff
Size: 3197 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20090318/ca486f43/attachment.patch
More information about the TYPO3-team-core
mailing list