Project

General

Profile

Actions

Bug #15349

closed

Maximum file size for file uploads in mailforms still hardcoded

Added by JoH over 18 years ago. Updated almost 18 years ago.

Status:
Closed
Priority:
Should have
Category:
Communication
Target version:
-
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)


Related issues 1 (0 open1 closed)

Is duplicate of TYPO3 Core - Bug #15220: Filesize of maximum allowed files in mailformsClosedMartin Kutschker2005-11-18

Actions
Actions

Also available in: Atom PDF