UPLOAD_MEDIA_TYPE
UPLOAD_MEDIA_TYPE
Manage large file uploads, which may be media but can be any type of sizable data.
$client : \Google_Client
__construct(\Google_Client $client, \Psr\Http\Message\RequestInterface $request, $mimeType, $data, $resumable = false, boolean $chunkSize = false)
| \Google_Client | $client | |
| \Psr\Http\Message\RequestInterface | $request | |
| $mimeType | string |
|
| $data | string The bytes you want to upload. |
|
| $resumable | bool |
|
| boolean | $chunkSize | File will be uploaded in chunks of this many bytes. only used if resumable=True |
makePutRequest(\Psr\Http\Message\RequestInterface $request) : false|mixed
Sends a PUT-Request to google drive and parses the response, setting the appropiate variables from the response()
| \Psr\Http\Message\RequestInterface | $request |
false when the upload is unfinished or the decoded http response