b2_get_upload_part_urlGets an URL to use for uploading parts of a large file.
When you upload part of a large file to B2, you must call
An uploadUrl and upload authorizationToken are valid for 24 hours or until the
endpoint rejects an upload, see
RequestRequest HTTP HeadersAuthorization required
An account authorization token, obtained from
Request HTTP Message Body ParametersfileId required The ID of the large file whose parts you want to upload. ResponseResponse HTTP Status 200Information for uploading file parts. The JSON response will contain: fileId The unique ID of file being uploaded. uploadUrl
The URL that can be used to upload parts of this file, see
authorizationToken
The authorizationToken that must be used when uploading files
with this URL. This token is valid for 24 hours or until the
uploadUrl endpoint rejects an upload, see
b2_upload_part
Response Errors
If possible the server will return a JSON error structure. Errors include:
API Versionsv1: Application keys (July 26, 2018)Incompatible change: After calling b2_authorize_account with an application key that does not have the right permissions, this call will return a 401 Unauthorized. v1: Original release (September 22, 2015)Sample CodeCode
Output
Code
Output
Code
Output
Code
Output
Code
Output
Code
Output under construction Code
Output
|