Google_Http_MediaFileUpload
class Google_Http_MediaFileUpload (View source)
Manage large file uploads, which may be media but can be any type of sizable data.
Constants
UPLOAD_MEDIA_TYPE |
|
UPLOAD_MULTIPART_TYPE |
|
UPLOAD_RESUMABLE_TYPE |
|
Methods
__construct(Google_Client $client, RequestInterface $request, string $mimeType, string $data, bool $resumable = false, bool $chunkSize = false)
No description
setFileSize($size)
Set the size of the file that is being uploaded.
int
getProgress()
Return the progress on the upload
nextChunk($chunk = false)
Send the next part of the file to upload.
int
getHttpResultCode()
Return the HTTP result code from the last call made.
resume($resumeUri)
Resume a previously unfinished upload
string
getUploadType($meta)
Valid upload types:
- resumable (UPLOAD_RESUMABLE_TYPE)
- media (UPLOAD_MEDIA_TYPE)
- multipart (UPLOAD_MULTIPART_TYPE)
getResumeUri()
No description
setChunkSize($chunkSize)
No description
getRequest()
No description
Details
__construct(Google_Client $client, RequestInterface $request, string $mimeType, string $data, bool $resumable = false, bool $chunkSize = false)
No description
setFileSize($size)
Set the size of the file that is being uploaded.
int
getProgress()
Return the progress on the upload
nextChunk($chunk = false)
Send the next part of the file to upload.
int
getHttpResultCode()
Return the HTTP result code from the last call made.
resume($resumeUri)
Resume a previously unfinished upload
string
getUploadType($meta)
Valid upload types:
- resumable (UPLOAD_RESUMABLE_TYPE)
- media (UPLOAD_MEDIA_TYPE)
- multipart (UPLOAD_MULTIPART_TYPE)
getResumeUri()
No description
setChunkSize($chunkSize)
No description
getRequest()
No description