[rt-users] how to reduce the limit of attachment

Marco Agostini comunelevico at gmail.com
Tue Jul 29 11:37:29 EDT 2014


Hi,

I would like to reduce the maximum size of attachments that can be
added directly from the web interface.

I'm using:
- Debian 7.5
- mysql 5.5.37-0+wheezy1
- RT 4.2.5

I set the value "max_allowed_packet" to "1M" in "/etc/mysql/my.cnf"
and configure these parameters on "/opt/rt4/etc/RT_SiteConfig.pm":

Set($MaxAttachmentSize, 1_000_000);       # 1M
Set($DropLongAttachments, 1_000_000);     # 1M

removed the cache:
rm -rf /opt/rt4/var/mason_data/obj

and restarted apache
apache2ctl restart


...but I can upload file that is bigger than 1M.

Any suggestion ?
thank you.



More information about the rt-users mailing list