AdminModule/presenters/FilesystemPresenter.php
public function getMaxUploadFileSize()
    {
        static $max_size = -1;

        if ($max_size < 0) {
            // Start with post_max_size.
            $max_size = $this->parseFileSize(ini_get('post_max_size'));

            // If upload_max_size is less, then reduce. Except if upload_max_size is
            // zero, which indicates no limit.
            $upload_max = $this->parseFileSize(ini_get('upload_max_filesize'));

            if ($upload_max > 0 && $upload_max < $max_size) {
                $max_size = $upload_max;
            }
        }
        return $max_size;
    }
public function getMaxUploadFileSize()
    {
        static $max_size = -1;

        if ($max_size < 0) {
            // Start with post_max_size.
            $max_size = $this->parseFileSize(ini_get('post_max_size'));

            // If upload_max_size is less, then reduce. Except if upload_max_size is
            // zero, which indicates no limit.
            $upload_max = $this->parseFileSize(ini_get('upload_max_filesize'));

            if ($upload_max > 0 && $upload_max < $max_size) {
                $max_size = $upload_max;
            }
        }
        return $max_size;
    }
public function getMaxUploadFileSize ( ) { static $ max_size = - 1 ; if ( $ max_size < 0 ) { // Start with post_max_size. $ max_size = $ this -> parseFileSize ( ini_get ( 'post_max_size' ) ) ; // If upload_max_size is less, then reduce. Except if upload_max_size is // zero, which indicates no limit. $ upload_max = $ this -> parseFileSize ( ini_get ( 'upload_max_filesize' ) ) ; if ( $ upload_max > 0 && $ upload_max < $ max_size ) { $ max_size = $ upload_max ; } } return $ max_size ; }
Get the maximal file upload size from the environment variables.

@author Taken from the Drupal.org project
@license GPL 2
@return int
Get the maximal file upload size from the environment variables .