src/mako/http/request/UploadedFile.php
public function moveTo(string $path): bool
	{
		if($this->hasError())
		{
			throw new UploadException(vsprintf('%s', [$this->getErrorMessage()]), $this->getErrorCode());
		}

		if($this->isUploaded() === false)
		{
			throw new UploadException('The file that you\'re trying to move was not uploaded.', -1);
		}

		return $this->moveUploadedFile($path);
	}
public function moveTo(string $path): bool
	{
		if($this->hasError())
		{
			throw new UploadException(vsprintf('%s', [$this->getErrorMessage()]), $this->getErrorCode());
		}

		if($this->isUploaded() === false)
		{
			throw new UploadException('The file that you\'re trying to move was not uploaded.', -1);
		}

		return $this->moveUploadedFile($path);
	}
public function moveTo ( string $ path ) : bool { if ( $ this -> hasError ( ) ) { throw new UploadException ( vsprintf ( '%s' , [ $ this -> getErrorMessage ( ) ] ) , $ this -> getErrorCode ( ) ) ; } if ( $ this -> isUploaded ( ) === false ) { throw new UploadException ( 'The file that you\'re trying to move was not uploaded.' , - 1 ) ; } return $ this -> moveUploadedFile ( $ path ) ; }
Moves the file to the desired path.

@param  string                                        $path Storage path
@throws \mako\http\request\exceptions\UploadException
@return bool
Moves the file to the desired path .