public static function getFileUploadLimit()
    {

        $max_upload = self::toBytes(ini_get('upload_max_filesize'));
        $max_post = self::toBytes(ini_get('post_max_size'));
        $memory_limit = self::toBytes(ini_get('memory_limit'));

        $returnValue = min($max_upload, $max_post, $memory_limit);

        return (int)$returnValue;
    }
public static function getFileUploadLimit()
    {

        $max_upload = self::toBytes(ini_get('upload_max_filesize'));
        $max_post = self::toBytes(ini_get('post_max_size'));
        $memory_limit = self::toBytes(ini_get('memory_limit'));

        $returnValue = min($max_upload, $max_post, $memory_limit);

        return (int)$returnValue;
    }
public static function getFileUploadLimit ( ) { $ max_upload = self :: toBytes ( ini_get ( 'upload_max_filesize' ) ) ; $ max_post = self :: toBytes ( ini_get ( 'post_max_size' ) ) ; $ memory_limit = self :: toBytes ( ini_get ( 'memory_limit' ) ) ; $ returnValue = min ( $ max_upload , $ max_post , $ memory_limit ) ; return ( int ) $ returnValue ; }
Returns the maximum size for fileuploads in bytes.

@return int The upload file limit.
Returns the maximum size for fileuploads in bytes .