Issue Bug Closed

#15349Maximum file size for file uploads in mailforms still hardcoded

JoH 01/03/06, 13:11 updated 08/12/06, 14:18

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.