Google_Http_MediaFileUpload
class Google_Http_MediaFileUpload extends MediaFileUpload (View source)
Constants
UPLOAD_MEDIA_TYPE |
|
UPLOAD_MULTIPART_TYPE |
|
UPLOAD_RESUMABLE_TYPE |
|
Methods
__construct(Client $client, RequestInterface $request, string $mimeType, string $data, bool $resumable = false, int $chunkSize = 0)
No description
from MediaFileUpload
nextChunk(string|bool $chunk = false)
Send the next part of the file to upload.
from MediaFileUpload
string
getUploadType(string|false $meta)
Valid upload types: - resumable (UPLOAD_RESUMABLE_TYPE) - media (UPLOAD_MEDIA_TYPE) - multipart (UPLOAD_MULTIPART_TYPE)
from MediaFileUpload
Details
in MediaFileUpload at line 82
__construct(Client $client, RequestInterface $request, string $mimeType, string $data, bool $resumable = false, int $chunkSize = 0)
in MediaFileUpload at line 105
setFileSize(int $size)
Set the size of the file that is being uploaded.
in MediaFileUpload at line 114
int
getProgress()
Return the progress on the upload
in MediaFileUpload at line 124
nextChunk(string|bool $chunk = false)
Send the next part of the file to upload.
in MediaFileUpload at line 153
int
getHttpResultCode()
Return the HTTP result code from the last call made.
in MediaFileUpload at line 197
resume(string $resumeUri)
Resume a previously unfinished upload
in MediaFileUpload at line 273
string
getUploadType(string|false $meta)
Valid upload types: - resumable (UPLOAD_RESUMABLE_TYPE) - media (UPLOAD_MEDIA_TYPE) - multipart (UPLOAD_MULTIPART_TYPE)