src/Validation/Traits/UploadValidationTrait.php
public static function isBelowMaxSize($check, $size)
    {
        // Non-file uploads also mean the size is too small
        if (!isset($check['size']) || !strlen($check['size'])) {
            return false;
        }

        return $check['size'] <= $size;
    }
public static function isBelowMaxSize($check, $size)
    {
        // Non-file uploads also mean the size is too small
        if (!isset($check['size']) || !strlen($check['size'])) {
            return false;
        }

        return $check['size'] <= $size;
    }
public static function isBelowMaxSize ( $ check , $ size ) { // Non-file uploads also mean the size is too small if ( ! isset ( $ check [ 'size' ] ) || ! strlen ( $ check [ 'size' ] ) ) { return false ; } return $ check [ 'size' ] <= $ size ; }
Check that the file is below the maximum file upload size

@param mixed $check Value to check
@param int $size Maximum file size
@return bool Success
Check that the file is below the maximum file upload size