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