public function max_size(string $blank = null, string $params, array $data): bool
	{
		// Grab the file name off the top of the $params
		// after we split it.
		$params = explode(',', $params);
		$name   = array_shift($params);

		$file = $this->request->getFile($name);

		if (is_null($file))
		{
			return false;
		}
		return $params[0] >= $file->getSize() / 1024;
	}
public function max_size(string $blank = null, string $params, array $data): bool
	{
		// Grab the file name off the top of the $params
		// after we split it.
		$params = explode(',', $params);
		$name   = array_shift($params);

		$file = $this->request->getFile($name);

		if (is_null($file))
		{
			return false;
		}
		return $params[0] >= $file->getSize() / 1024;
	}
public function max_size ( string $ blank = null , string $ params , array $ data ) : bool { // Grab the file name off the top of the $params // after we split it. $ params = explode ( ',' , $ params ) ; $ name = array_shift ( $ params ) ; $ file = $ this -> request -> getFile ( $ name ) ; if ( is_null ( $ file ) ) { return false ; } return $ params [ 0 ] >= $ file -> getSize ( ) / 1024 ; }
Verifies if the file's size in Kilobytes is no larger than the parameter.

@param string|null $blank
@param string      $params
@param array       $data

@return boolean
Verifies if the file s size in Kilobytes is no larger than the parameter .