IRPCWOPIOperationsPublic.WOPIUploadFile

View as Markdown

Server integration API / specialized internal: not for applications write no session

Uploads a block of the new content of the file of a WOPI editing or co-authoring session.

ServiceWOPI operations (anonymous) MFiles.IRPCWOPIOperationsPublic
gRPC method/MFiles.IRPCWOPIOperationsPublic/WOPIUploadFile
HTTP (mf-http-grpc)POST /grpc/v1/wopiupload-file
RequestWOPIUploadFileRequest
ResponseWOPIUploadFileResponse
Book and levelServer integration API, specialized
Kindwrite
SessionNot needed: the call can be made before logging in.
Idempotentno
Returns metadata structure versionno
Streamingnone (unary)

Remarks

For M-Files components only. The M-Files WOPI service calls it when Office for the web saves the file. Applications should not call it.

Request: WOPIUploadFileRequest

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

FieldTypeDescription
wopi_user_session_keystringThe WOPI user session token.
upload_idint320 to start a new upload, otherwise the ID returned by the first call.
total_size_in_bytesint64The total size of the file in bytes. Used only when offset is 0.
offsetint64The position of data in the file. Use multiples of 4096 bytes.
databytesThe block. Use multiples of 4096 bytes, except for the last block.

Response: WOPIUploadFileResponse

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

FieldTypeDescription
upload_idint32Receives the identifier of this upload operation.