Josegonzalez\Upload\Validation\Traits\UploadValidationTrait::isBelowMaxSize PHP 메소드

isBelowMaxSize() 공개 정적인 메소드

Check that the file is below the maximum file upload size
public static isBelowMaxSize ( mixed $check, integer $size ) : boolean
$check mixed Value to check
$size integer Maximum file size
리턴 boolean Success
    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;
    }