Core/src/Upload/ResumableUploader.php
public function resume($resumeUri)
    {
        if (!$this->data->isSeekable()) {
            throw new GoogleException('Cannot resume upload on a stream which cannot be seeked.');
        }

        $this->resumeUri = $resumeUri;
        $response = $this->getStatusResponse();

        if ($response->getBody()->getSize() > 0) {
            return $this->decodeResponse($response);
        }

        $this->rangeStart = $this->getRangeStart($response->getHeaderLine('Range'));

        return $this->upload();
    }
public function resume($resumeUri)
    {
        if (!$this->data->isSeekable()) {
            throw new GoogleException('Cannot resume upload on a stream which cannot be seeked.');
        }

        $this->resumeUri = $resumeUri;
        $response = $this->getStatusResponse();

        if ($response->getBody()->getSize() > 0) {
            return $this->decodeResponse($response);
        }

        $this->rangeStart = $this->getRangeStart($response->getHeaderLine('Range'));

        return $this->upload();
    }
public function resume ( $ resumeUri ) { if ( ! $ this -> data -> isSeekable ( ) ) { throw new GoogleException ( 'Cannot resume upload on a stream which cannot be seeked.' ) ; } $ this -> resumeUri = $ resumeUri ; $ response = $ this -> getStatusResponse ( ) ; if ( $ response -> getBody ( ) -> getSize ( ) > 0 ) { return $ this -> decodeResponse ( $ response ) ; } $ this -> rangeStart = $ this -> getRangeStart ( $ response -> getHeaderLine ( 'Range' ) ) ; return $ this -> upload ( ) ; }
Resumes a download using the provided URI.

@param string $resumeUri
@return array
@throws GoogleException
Resumes a download using the provided URI .