Tell the Databrary API that all parts of a multipart upload
have been PUT to S3 and the object can be assembled. The server forwards
the part list to S3's CompleteMultipartUpload, transitioning the
upload into the post-upload pipeline (virus scan, format probe).
Only needed when initiate_upload() returned
upload_type == "multipart". Single-PUT uploads complete implicitly
once the object lands in storage.
Usage
complete_upload(
upload_guid,
s3_upload_id,
parts,
vb = options::opt("vb"),
rq = NULL
)Arguments
- upload_guid
Character GUID returned in
initiate_upload()$upload_guid.- s3_upload_id
Character S3 upload ID returned in
initiate_upload()$s3_upload_id.- parts
A list of one entry per part, each a list with
part_number(positive integer) andetag(character, from theETagresponse header of the part PUT). Order is not significant – the server sorts bypart_number.- vb
Show verbose messages. (Defaults to
FALSE, overwritable using option 'databraryr.vb' or environment variable 'R_DATABRARYR_VB')- rq
An
httr2request object. Defaults toNULL.
