Author Topic: Error - Attachment Maximum allowed file size  (Read 5438 times)

Offline fernando-sianet

  • Newbie
  • *
  • Posts: 4
Error - Attachment Maximum allowed file size
« on: April 16, 2020, 05:28:26 PM »
Hello everyone,

Please, how can i change the value:
Maximum allowed file size. I need to change for 25MB



if I change the file config/defaults.inc.php ===> $config['max_message_size'] = '34M';

appears correctly = 25MB, but changes the alert message for 34MB:



it seems that the variable changes the two values.

The php.ini:
upload_max_filesize = 25M;
post_max_size = 25M;

Regards

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: Error - Attachment Maximum allowed file size
« Reply #1 on: April 17, 2020, 02:35:16 AM »
The roundcube config value `max_message_size` is used to define the maximum size of a message, that is the combined size of all the attachments. It has no effect on the PHP vars `upload_max_filesize` and `post_max_size` which control the size of induvial file uploads.

After you change your PHP config you need to restart your webserver.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline fernando-sianet

  • Newbie
  • *
  • Posts: 4
Re: Error - Attachment Maximum allowed file size
« Reply #2 on: April 17, 2020, 09:49:52 AM »
Hi,

Thank you very much for answering me.

I change the values:

upload_max_filesize = 25M;
post_max_size = 25M;

and restart httpd, but it had no effect. Continues showing the value of 18MB: Maximum allowed file size is 18 MB

have another file, parameter that I can try to change?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,845
Re: Error - Attachment Maximum allowed file size
« Reply #3 on: April 17, 2020, 11:59:44 AM »
Are you sure you have changed the correct php config file? there is no .htaccess file or anything like that? If you are not sure may be try dumping out phpinfo() from your roundcube dir to see where its getting its config from.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline fernando-sianet

  • Newbie
  • *
  • Posts: 4
Re: Error - Attachment Maximum allowed file size
« Reply #4 on: April 17, 2020, 12:21:03 PM »
something I realized is that after it changes the value to upload_max_filesize = 18M; in php.ini

He changes for:

Maximum allowed file size is 18 MB

but if I change to 25M in upload_max_filesize = 25M;

it remains at 18 MB. He is no more than 18 MB.

Offline fernando-sianet

  • Newbie
  • *
  • Posts: 4
Re: Error - Attachment Maximum allowed file size
« Reply #5 on: April 17, 2020, 03:47:25 PM »
I changed to 40M no effect

Follow the attachment.
*******************************
roundcubemail/.htaccess

php_value memory_limit 256M
php_value upload_max_filesize 40M
php_value post_max_size 40M
******************************
In postfix/main.cf

I tried adding:

mailbox_size_limit = 26214400
virtual_mailbox_limit = 26214400

The value continues 18 MB: Maximum allowed file size is 18 MB

Thank you

Regards
« Last Edit: April 17, 2020, 03:52:12 PM by fernando-sianet »