src/VK/Client/VKApiRequest.php
public function upload(string $upload_url, string $parameter_name, string $path) {
        try {
            $response = $this->http_client->upload($upload_url, $parameter_name, $path);
        } catch (TransportRequestException $e) {
            throw new VKClientException($e);
        }

        return $this->parseResponse($response);
    }
public function upload(string $upload_url, string $parameter_name, string $path) {
        try {
            $response = $this->http_client->upload($upload_url, $parameter_name, $path);
        } catch (TransportRequestException $e) {
            throw new VKClientException($e);
        }

        return $this->parseResponse($response);
    }
public function upload ( string $ upload_url , string $ parameter_name , string $ path ) { try { $ response = $ this -> http_client -> upload ( $ upload_url , $ parameter_name , $ path ) ; } catch ( TransportRequestException $ e ) { throw new VKClientException ( $ e ) ; } return $ this -> parseResponse ( $ response ) ; }
Uploads data by its path to the given url.

@param string $upload_url
@param string $parameter_name
@param string $path

@return mixed

@throws VKClientException
@throws VKApiException
Uploads data by its path to the given url .