Actions
Bug #15349
closedMaximum file size for file uploads in mailforms still hardcoded
Start date:
2006-01-03
Due date:
% Done:
0%
Estimated time:
TYPO3 Version:
4.0
PHP Version:
4
Tags:
Complexity:
Is Regression:
Sprint Focus:
Description
There have been several threads about the fact that the maximum filesize for mail attachments is hardcoded in class.t3lib_formmail.php.
The original has been
if (filesize($theFile) < 200000) {
$this->addAttachment($theFile, $theName);
}
In newer versions of TYPO3 this line has been changed, but the value is still hardcoded.
if (filesize($theFile) < 250000) {
$this->addAttachment($theFile, $theName);
}
This raises the limit a bit but still leaves the original problem that the user can't change the value.
We definitely need a piece of TypoScript here that will have 250000 as a default value to keep backwards compatibility but can be changed easily to different values.
(issue imported from #M2163)
Actions