Current time: 11-26-2024, 10:32 PM Hello There, Guest! (LoginRegister)


Post Reply 
webmail in IscCP Omega only allowing 2 meg attachments
Author Message
joximu Offline
helper
*****
Moderators

Posts: 7,024
Joined: Jan 2007
Reputation: 92
Post: #6
RE: webmail in IscCP Omega only allowing 2 meg attachments
http://www.squirrelmail.org/wiki/AttachmentSize

seems to be 3 values that must be high enough...

I googled around but only found theese 3 values to change...

And if I interpret this code correctly then the min-value of theese thre is taken:

(from compose.php of squirrel)
Code:
/* This code is for attachments */
    if ((bool) ini_get('file_uploads')) {

        /* Calculate the max size for an uploaded file.
         * This is advisory for the user because we can't actually prevent
         * people to upload too large files. */
        $sizes = array();
        /* php.ini vars which influence the max for uploads */
        $configvars = array('post_max_size', 'memory_limit', 'upload_max_filesize');
        foreach($configvars as $var) {
            /* skip 0 or empty values, and -1 which means 'unlimited' */
            if( $size = getByteSize(ini_get($var)) ) {
                if ( $size != '-1' ) {
                    $sizes[] = $size;
                }
            }
        }

        if(count($sizes) > 0) {
            $maxsize = '(max. ' . show_readable_size( min( $sizes ) ) . ')' .
                addHidden('MAX_FILE_SIZE', min( $sizes ));
        } else {
            $maxsize = '';
        }

/J
12-31-2007 01:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
RE: webmail in IscCP Omega only allowing 2 meg attachments - joximu - 12-31-2007 01:37 AM

Forum Jump:


User(s) browsing this thread: 4 Guest(s)