IRPCFileTransfer.FileUploadEnd

View as Markdown

Vault API / standard write session or assertion

Completes an upload in blocks. Binds the content to no object; use FileUploadAttach or AddObjectWithFiles for that.

ServiceStateless file upload sessions MFiles.IRPCFileTransfer
gRPC method/MFiles.IRPCFileTransfer/FileUploadEnd
HTTP (mf-http-grpc)POST /grpc/v1/file-upload-end
RequestFileUploadEndRequest
ResponseFileUploadEndResponse
Book and levelVault API, standard
Kindwrite
SessionRequired: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
Idempotentno
Returns metadata structure versionno
Streamingnone (unary)

Remarks

block_count must match the uploaded blocks 0..block_count-1 ("The block count does not match the uploaded blocks." otherwise), and the content must have the total_size_in_bytes given to FileUploadBegin, if any ("File size mismatch.").

Request: FileUploadEndRequest

Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

FieldTypeDescription
file_refstringThe file_ref from FileUploadBegin.
block_countint64The number of uploaded blocks, at most 50,000. The blocks are indexes 0 to block_count-1.

Response: FileUploadEndResponse

No fields.