Author Topic: How to increase size in attachement files? or Quit the ad The file exceeds the m  (Read 5791 times)

Offline cfreire

  • Newbie
  • *
  • Posts: 5
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? =)

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
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
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline cfreire

  • Newbie
  • *
  • Posts: 5
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.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
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.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline cfreire

  • Newbie
  • *
  • Posts: 5
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.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
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
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline cfreire

  • Newbie
  • *
  • Posts: 5
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.

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,855
in the root of your Roundcube installation.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and more…

Offline cfreire

  • Newbie
  • *
  • Posts: 5
Ah ok, i found it.
Thanks my friend.

Regards