Author Topic: Maximum Attachment Size Settings  (Read 7352 times)

Offline limburatorul

  • Newbie
  • *
  • Posts: 5
Maximum Attachment Size Settings
« on: March 11, 2009, 09:08:56 AM »
where do i modify the maximum attachment size?

thanks
« Last Edit: March 11, 2009, 09:43:05 AM by rosali »

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Maximum Attachment Size Settings
« Reply #1 on: March 11, 2009, 09:16:32 AM »
refer to php.ini and roundcube .htaccess !!
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline limburatorul

  • Newbie
  • *
  • Posts: 5
Maximum Attachment Size Settings
« Reply #2 on: March 11, 2009, 10:12:02 AM »
Quote from: rosali;17619
refer to php.ini and roundcube .htaccess !!

in php.ini i don't have that
do i need to ad it manulay, or since it isn't there its not going to work?

edit: i must be blind... for crying out loud, its the 4th time this day... i keep missing lines, i think i need new glasses
ok i found it
thanks
« Last Edit: March 11, 2009, 10:14:20 AM by limburatorul »

Offline rosali

  • Hero Member
  • *****
  • Posts: 2,533
Maximum Attachment Size Settings
« Reply #3 on: March 11, 2009, 10:16:48 AM »
php.ini handles the global PHP settings ...

Code: [Select]

;;;;;;;;;;;;;;;;
; File Uploads ;
;;;;;;;;;;;;;;;;

; Whether to allow HTTP file uploads.
file_uploads = On

; Temporary directory for HTTP uploaded files (will use system default if not
; specified).
upload_tmp_dir = "D:\xampp\tmp"

; Maximum allowed size for uploaded files.
upload_max_filesize = 32M


You can override these settings - if allowed by global php settings - by definitions in the .htaccess file located in RoundCube root folder ...

Code: [Select]

php_value upload_max_filesize 5M
php_value post_max_size 6M
php_value memory_limit 64M
« Last Edit: December 09, 2009, 01:44:57 AM by rosali »
Regards,
Rosali
__________________
MyRoundcube Project (commercial)

Offline emoxam

  • Newbie
  • *
  • Posts: 2
Maximum Attachment Size Settings
« Reply #4 on: September 21, 2009, 07:23:35 AM »
post_max_size = 16M
upload_max_filesize = 16M
memory_limit = 128M

and restart apache

create on the web a pi.php with a ""  string and see that all right - all my settings are working

so in httpd-error i got

Mon Sep 21 12:39:08 2009] [error] [client 62.105.143.34] PHP Warning:  POST Content-Length of 11309546 bytes exceeds the limit of 6291456 bytes in Unknown on line 0, referer: http://79.165.188.218:8080/rc/?_task=mail&_id=12258773404ab73b58
81a6d&_action=compose

what i forget?

Offline emoxam

  • Newbie
  • *
  • Posts: 2
Maximum Attachment Size Settings
« Reply #5 on: September 21, 2009, 03:00:52 PM »
sorry! there wast .htaccess and there was default velues! witch i saw.. saw i edit the .htaccess and all is ok!

Offline gertudby

  • Newbie
  • *
  • Posts: 5
upload_max_filesize_attachment
« Reply #6 on: December 08, 2009, 12:38:06 PM »
Hi
I have the following settings

php.ini
----------------
; Maximum size of POST data that PHP will accept.
post_max_size = 18M

; Maximum allowed size for uploaded files.
upload_max_filesize = 11M
----------------

.htaccess  (roundcubemail-0.2.1/.htaccess)
----------------
php_value       upload_max_filesize     5M
php_value       post_max_size   6M
php_value       memory_limit    64M
----------------

Even though I have a max limit on attachment at 2 Mb
Can anybody tell me or guide me in the right direction ?:)
I also have squirrelmail installed and there is a 8Mb file-attachment-max (so there couldn't be a global restriction on the webserver. ?)

Best Regards
Gert

Offline sporkman

  • Jr. Member
  • **
  • Posts: 13
Re: Maximum Attachment Size Settings
« Reply #7 on: February 22, 2018, 04:42:25 PM »
refer to php.ini and roundcube .htaccess !!

Just wanted to note that it would be much more handy to enforce this in roundcube itself.  For example, we have other php apps running and they need 64MB, but we want to limit to 25MB since that's what our outbound smtp servers allow.  It just makes more sense to change this in the roundcube config - why spread this out across multiple config files?

Offline JohnDoh

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2,099
Re: Maximum Attachment Size Settings
« Reply #8 on: February 23, 2018, 01:57:14 AM »
From Roundcub config (added in version 1.3):
Quote
// Message size limit. Note that SMTP server(s) may use a different value.
// This limit is verified when user attaches files to a composed message.
// Size in bytes (possible unit suffix: K, M, G)
$config['max_message_size'] = '100M';
Note: this limits the combined size of all attachments to a message. It cannot override PHP upload settings.
Roundcube Plugins: Contextmenu, SpamAssassin Prefs, and moreā€¦