Roundcube Community Forum

Release Support => Release Discussion => Topic started by: cfreire on July 16, 2015, 06:02:05 PM

Title: How to increase size in attachement files? or Quit the ad The file exceeds the m
Post by: cfreire on July 16, 2015, 06:02:05 PM
Hi  :D

I would want to know how quit the ad "The file exceeds the maximum size.." when me load a file to attach it.
May you help me please? =)
Title: Re: How to increase size in attachement files? or Quit the ad The file exceeds the m
Post by: JohnDoh on July 17, 2015, 03:09:05 AM
this is asked quite often on the forum so a quick search might get you a fuller answer.

you need to alter the settings for upload_max_filesize and post_max_size either in the .htaccess file in the rc root or in your php settings. note: if you change php's config you must restart the webserver for them to take affect
Title: Re: How to increase size in attachement files? or Quit the ad The file exceeds the m
Post by: cfreire on July 17, 2015, 12:25:31 PM
Oh I am sorry
I forgot to say you that I have done those steps that you mentioned about init.php.
Even, in a mail client as a Outlook I have attached files greater than 5Mb, but in roundcube I recieve the error "The file exceeds the maximun.....".
So i need to know how to quit this ad in roundcube.
Title: Re: How to increase size in attachement files? or Quit the ad The file exceeds the m
Post by: JohnDoh on July 18, 2015, 03:40:40 AM
init.php? if the message is still coming up then you have not done them right. try generating a phpinfo(); from inside your roundcube directory to check where its reading its config from and what values its getting.
Title: Re: How to increase size in attachement files? or Quit the ad The file exceeds the m
Post by: cfreire on July 21, 2015, 11:05:49 AM
Hi
excuse me I don't know how to generate a php info.
In php.ini, i modified the followings lines:


    post_max_size = 8Mb
    upload_max_filesize = 16Mb

I can attach files greater than 5MB but only in Thunderbird or Outlook., but from roudcoube not.
Heeelp.
Title: Re: How to increase size in attachement files? or Quit the ad The file exceeds the m
Post by: JohnDoh on July 22, 2015, 03:07:08 AM
did you also change the values in the .htaccess file in the Roundcube root?

here is how to get phpinfo() - http://php.net/manual/en/function.phpinfo.php

make a new file in the roundcube root, info.php for example and put `<?php phpinfo();` in it
Title: Re: How to increase size in attachement files? or Quit the ad The file exceeds the m
Post by: cfreire on July 22, 2015, 12:32:55 PM
Hi
Ah no, i did not change the .htaccess of roundcube. Please may you say me the path where i can find this .htaccess¿? thanks.
Title: Re: How to increase size in attachement files? or Quit the ad The file exceeds the m
Post by: JohnDoh on July 24, 2015, 02:41:29 AM
in the root of your Roundcube installation.
Title: Re: How to increase size in attachement files? or Quit the ad The file exceeds the m
Post by: cfreire on July 24, 2015, 10:20:48 AM
Ah ok, i found it.
Thanks my friend.

Regards