[TYPO3-core] RFC #5065: Feature: Make hardcoded (250000 bytes) max attachment size for mailform configurable
Ernesto Baschny [cron IT]
ernst at cron-it.de
Mon Dec 17 17:42:04 CET 2007
This is an SVN patch request.
Type: New feature
Bugtracker references:
http://bugs.typo3.org/view.php?id=5065
Branches: trunk
Problem:
People using the integrated mailform functions can't create forms where
users would be able to send attachments larger than 250000 bytes. Larger
attachments very common requirement.
The value is hardcoded in class.t3lib_formmail.php, has been raised to
250000 some years ago but instead it should be configurable.
Solution:
The old default stays, but is now configurable via Install-Tool.
How to test:
Create a "Form" content element with:
Name: | Name=input
Attachment: | attachment1=file,10000000
| formtype_mail=submit | Send form!
| html_enabled=hidden | 1
| subject=hidden | Test with Attachment
Try to send a 2 Mb attachment. Doesn't work. Now apply the patch and set
in Install Tool > All Configuration:
$TYPO3_CONF_VARS['FE']['formmailMaxAttachmentSize'] = '10000000';
Attached patch. Thanks for Steffen Kamper for the first patch version.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bug-5065-attachment-size.diff
Type: text/x-diff
Size: 3392 bytes
Desc: not available
Url : http://lists.netfielders.de/pipermail/typo3-team-core/attachments/20071217/920bc5e8/attachment.diff
More information about the TYPO3-team-core
mailing list