ResumableUpload implements IErrorable
AbstractYes
Table of Contents
Interfaces
Constants
- CHUNK_SIZE = 10485760
- ERROR_BAD_JSON = 'RESUMABLE_UPLOAD_22002'
- ERROR_HTTP_GET_LOCATION_FOR_UPLOAD = 'RESUMABLE_UPLOAD_22001'
- ERROR_HTTP_RESUMABLE_UPLOAD = 'RESUMABLE_UPLOAD_22000'
Methods
- __construct() : mixed
- getErrorByCode() : array<string|int, Error>
- Getting once error with the necessary code.
- getErrors() : array<string|int, Error>
- Getting array of errors.
- getErrorsByCode() : array<string|int, Error>
- Getting array of errors with the necessary code.
- getFileData() : FileData
- getLastResponse() : array<string|int, mixed>
- getLastStatus() : int
- upload() : bool
Constants
CHUNK_SIZE
public
mixed
CHUNK_SIZE
= 10485760
ERROR_BAD_JSON
public
mixed
ERROR_BAD_JSON
= 'RESUMABLE_UPLOAD_22002'
ERROR_HTTP_GET_LOCATION_FOR_UPLOAD
public
mixed
ERROR_HTTP_GET_LOCATION_FOR_UPLOAD
= 'RESUMABLE_UPLOAD_22001'
ERROR_HTTP_RESUMABLE_UPLOAD
public
mixed
ERROR_HTTP_RESUMABLE_UPLOAD
= 'RESUMABLE_UPLOAD_22000'
Methods
__construct()
public
__construct(DocumentHandler $documentHandler, FileData $fileData) : mixed
Parameters
- $documentHandler : DocumentHandler
- $fileData : FileData
getErrorByCode()
Getting once error with the necessary code.
public
getErrorByCode(mixed $code) : array<string|int, Error>
Parameters
- $code : mixed
-
Code of error.
Tags
Return values
array<string|int, Error>getErrors()
Getting array of errors.
public
getErrors() : array<string|int, Error>
Return values
array<string|int, Error>getErrorsByCode()
Getting array of errors with the necessary code.
public
getErrorsByCode(mixed $code) : array<string|int, Error>
Parameters
- $code : mixed
-
Code of error.
Tags
Return values
array<string|int, Error>getFileData()
public
getFileData() : FileData
Return values
FileDatagetLastResponse()
public
getLastResponse() : array<string|int, mixed>
Return values
array<string|int, mixed>getLastStatus()
public
getLastStatus() : int
Return values
intupload()
public
upload() : bool