Bitrix API

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

$documentHandler  : OneDriveHandler

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

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

Methods

getErrorByCode()

Getting once error with the necessary code.

public getErrorByCode(mixed $code) : array<string|int, Error>
Parameters
$code : mixed

Code of error.

Tags
inheritdoc
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
inheritdoc
Return values
array<string|int, Error>

getLastResponse()

public getLastResponse() : array<string|int, mixed>
Return values
array<string|int, mixed>

        
On this page

Search results