Roundcube Community Forum

News and Announcements => General Discussion => Topic started by: boxyball on December 30, 2014, 01:49:59 PM

Title: how to set attachment size limit
Post by: boxyball on December 30, 2014, 01:49:59 PM
hello,

How do I set/change attachment size limit for all users?
And how would I make exceptions for certain users?

I currently DO NOT have sendmail limiting message size at all.
And I set php to 5mb as follows:
upload_max_filesize = 5M
Yet I still see a message that my limit is 2mb when I attempt to send a 3mb attachment in Roundcube.

Thanks in advance.
Title: Re: how to set attachment size limit
Post by: SKaero on January 02, 2015, 12:44:34 AM
Make sure the limit is being applied to to Roundcube by checking the phpinfo() in the Roundcube directory. You may also need to change the post_max_size to support larger uploads.
Title: Re: how to set attachment size limit
Post by: boxyball on January 02, 2015, 11:00:47 AM
that worked.  thanks.
Title: Re: how to set attachment size limit
Post by: boxyball on January 13, 2015, 03:18:29 PM
Is it possible to make exceptions and have higher limits for certain users?  If so how?
Title: Re: how to set attachment size limit
Post by: SKaero on January 14, 2015, 03:40:58 AM
You have to make a plugin that would set the php limits per-session.
Title: Re: how to set attachment size limit
Post by: zhbzhbzhbz on March 04, 2017, 02:32:42 PM
You can also refer to http://www.iredmail.com/docs/change.mail.attachment.size.html#change-upload-file-size-in-roundcube-webmail