pub async fn get_upload_part_authorization<'a, 'b, C, E>(
auth: &'a mut Authorization<C>,
file: &'b File,
) -> Result<UploadPartAuthorization<'a, 'b, C, E>, Error<E>>
Expand description
Get an UploadPartAuthorization to upload data to a new B2 file.
Use the returned UploadPartAuthorization
when calling upload_file_part.
The UploadPartAuthorization
is valid for 24 hours or until an endpoint
rejects an upload.
If uploading multiple parts concurrently, each thread or task needs its own authorization.
The Authorization must have Capability::WriteFiles.
ยงB2 API Difference
The equivalent B2 endpoint is called
b2_get_upload_url
.