function _ruleCheckMaxFileSize($elementValue, $maxSize)
    {
        if (!empty($elementValue['error']) && 
            (UPLOAD_ERR_FORM_SIZE == $elementValue['error'] || UPLOAD_ERR_INI_SIZE == $elementValue['error'])) {
            return false;
        }
        if (!HTML_QuickForm_file::_ruleIsUploadedFile($elementValue)) {
            return true;
        }
        return ($maxSize >= @filesize($elementValue['tmp_name']));
    }
function _ruleCheckMaxFileSize($elementValue, $maxSize)
    {
        if (!empty($elementValue['error']) && 
            (UPLOAD_ERR_FORM_SIZE == $elementValue['error'] || UPLOAD_ERR_INI_SIZE == $elementValue['error'])) {
            return false;
        }
        if (!HTML_QuickForm_file::_ruleIsUploadedFile($elementValue)) {
            return true;
        }
        return ($maxSize >= @filesize($elementValue['tmp_name']));
    }
function _ruleCheckMaxFileSize ( $ elementValue , $ maxSize ) { if ( ! empty ( $ elementValue [ 'error' ] ) && ( UPLOAD_ERR_FORM_SIZE == $ elementValue [ 'error' ] || UPLOAD_ERR_INI_SIZE == $ elementValue [ 'error' ] ) ) { return false ; } if ( ! HTML_QuickForm_file :: _ruleIsUploadedFile ( $ elementValue ) ) { return true ; } return ( $ maxSize >= @ filesize ( $ elementValue [ 'tmp_name' ] ) ) ; }
Checks that the file does not exceed the max file size

@param     array     Uploaded file info (from $_FILES)
@param     int       Max file size
@access    private
@return    bool      true if filesize is lower than maxsize, false otherwise
Checks that the file does not exceed the max file size