public function isRequestValid()
    {
        $max_size = @ini_get('post_max_size');
        if (!$max_size) {
            return true;
        }

        if (server_safe('REQUEST_METHOD') === 'POST' && (int)server_safe('CONTENT_LENGTH') > General::convertHumanFileSizeToBytes($max_size)) {
            return false;
        }

        return true;
    }
public function isRequestValid()
    {
        $max_size = @ini_get('post_max_size');
        if (!$max_size) {
            return true;
        }

        if (server_safe('REQUEST_METHOD') === 'POST' && (int)server_safe('CONTENT_LENGTH') > General::convertHumanFileSizeToBytes($max_size)) {
            return false;
        }

        return true;
    }
public function isRequestValid ( ) { $ max_size = @ ini_get ( 'post_max_size' ) ; if ( ! $ max_size ) { return true ; } if ( server_safe ( 'REQUEST_METHOD' ) === 'POST' && ( int ) server_safe ( 'CONTENT_LENGTH' ) > General :: convertHumanFileSizeToBytes ( $ max_size ) ) { return false ; } return true ; }
This function will check to ensure that this post request is not larger than
what the server is set to handle. If it is, a notice is shown.

@link https://github.com/symphonycms/symphony-2/issues/1187
@since Symphony 2.5.2
This function will check to ensure that this post request is not larger than what the server is set to handle . If it is a notice is shown .