Roundcube Community Forum

 

Maximum Attachment Size Settings

Started by limburatorul, March 11, 2009, 09:08:56 AM

Previous topic - Next topic

limburatorul

where do i modify the maximum attachment size?

thanks

rosali

refer to php.ini and roundcube .htaccess !!
Regards,
Rosali

limburatorul

#2
Quote from: rosali;17619refer 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

rosali

#3
php.ini handles the global PHP settings ...


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


php_value upload_max_filesize 5M
php_value post_max_size 6M
php_value memory_limit 64M
Regards,
Rosali

emoxam

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?

emoxam

sorry! there wast .htaccess and there was default velues! witch i saw.. saw i edit the .htaccess and all is ok!

gertudby

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

sporkman

Quote from: rosali on March 11, 2009, 09:16:32 AM
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?

JohnDoh

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