# IRPCSharedLinksPublic.UploadSharedFileCommit

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Vault API](https://developer.m-files.com/APIs/gRPC-API/vault/index.md) > [Shared links (anonymous access)](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinksPublic/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinksPublic/UploadSharedFileCommit/

Badges: `Vault API / standard` `write` `no session`

Completes an upload made with UploadSharedFile and stores the content in the checked-out file.
Used by M-Files clients; applications rarely call it.

- **Service:** [Shared links (anonymous access)](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinksPublic/index.md) `MFiles.IRPCSharedLinksPublic`
- **gRPC method:** `/MFiles.IRPCSharedLinksPublic/UploadSharedFileCommit`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/upload-shared-file-commit`
- **Request:** [`UploadSharedFileCommitRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinksPublic/UploadSharedFileCommit/index.md#request)
- **Response:** [`UploadSharedFileCommitResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinksPublic/UploadSharedFileCommit/index.md#response)
- **Book and level:** Vault API, standard
- **Kind:** write
- **Session:** Not needed: the call can be made before logging in.
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- The object must be checked out. The number of bytes uploaded must match the
  `total_size_in_bytes` given with the first block.

<a id="request"></a>

## Request: UploadSharedFileCommitRequest

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

| Field | Type | Description |
|---|---|---|
| `vault` | `string` | The vault GUID. |
| `access_key` | `string` | The access key of the editing link. |
| `upload_id` | `int32` | The upload ID from UploadSharedFile. |
| `low_digest` | `int64` | If not zero, the first 8 bytes of the MD5 checksum of the uploaded file, as a little-endian integer. |
| `high_digest` | `int64` | If not zero, the last 8 bytes of the MD5 checksum, as a little-endian integer. |

<a id="response"></a>

## Response: UploadSharedFileCommitResponse

No fields.

<a id="related"></a>

## Related methods

- [UploadSharedFile](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCSharedLinksPublic/UploadSharedFile/index.md): Uploads a block of new content for a file opened for editing in Office for the web. Used by M-Files clients; applications rarely call it.
