Author Topic: how to set attachment size limit  (Read 10121 times)

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
how to set attachment size limit
« 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.
« Last Edit: December 30, 2014, 02:05:56 PM by boxyball »

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,878
    • SKaero - Custom Roundcube development
Re: how to set attachment size limit
« Reply #1 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.

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: how to set attachment size limit
« Reply #2 on: January 02, 2015, 11:00:47 AM »
that worked.  thanks.

Offline boxyball

  • Full Member
  • ***
  • Posts: 92
Re: how to set attachment size limit
« Reply #3 on: January 13, 2015, 03:18:29 PM »
Is it possible to make exceptions and have higher limits for certain users?  If so how?

Offline SKaero

  • Administrator
  • Hero Member
  • *****
  • Posts: 5,878
    • SKaero - Custom Roundcube development
Re: how to set attachment size limit
« Reply #4 on: January 14, 2015, 03:40:58 AM »
You have to make a plugin that would set the php limits per-session.