OneDriveResumableUpload extends ResumableUpload
Table of Contents
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'
- SUFFIX_TO_CREATE_UPLOAD_SESSION = \Bitrix\Disk\Document\OneDriveHandler::SUFFIX_TO_CREATE_UPLOAD_SESSION
Properties
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
- setUploadPath() : mixed
- 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'
SUFFIX_TO_CREATE_UPLOAD_SESSION
public
mixed
SUFFIX_TO_CREATE_UPLOAD_SESSION
= \Bitrix\Disk\Document\OneDriveHandler::SUFFIX_TO_CREATE_UPLOAD_SESSION
Properties
$documentHandler
public
OneDriveHandler
$documentHandler
Methods
__construct()
public
__construct(OneDriveHandler $documentHandler, FileData $fileData) : mixed
Parameters
- $documentHandler : OneDriveHandler
- $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
intsetUploadPath()
public
setUploadPath(mixed $uploadPath) : mixed
Parameters
- $uploadPath : mixed
upload()
public
upload() : bool