src/Checker/FileChecker.php
public function size($file, int $size): bool
    {
        if (empty($filename = $this->resolveFilename($file))) {
            return false;
        }

        return $this->files->size($filename) <= ($size * 1024);
    }
public function size($file, int $size): bool
    {
        if (empty($filename = $this->resolveFilename($file))) {
            return false;
        }

        return $this->files->size($filename) <= ($size * 1024);
    }
public function size ( $ file , int $ size ) : bool { if ( empty ( $ filename = $ this -> resolveFilename ( $ file ) ) ) { return false ; } return $ this -> files -> size ( $ filename ) <= ( $ size * 1024 ) ; }
Check if file size less that specified value in KB.

@param mixed $file Local file or uploaded file array.
@param int   $size Size in KBytes.

@return bool
Check if file size less that specified value in KB .