Roundcube Community Forum

 

Error - Attachment Maximum allowed file size

Started by fernando-sianet, April 16, 2020, 05:28:26 PM

Previous topic - Next topic

fernando-sianet

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

JohnDoh

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...

fernando-sianet

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?

JohnDoh

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...

fernando-sianet

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.

fernando-sianet

#5
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