# IRPCObjectOperations.GetComparisonUrlOfUploadedFile

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) > [Objects, versions, properties and files](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/index.md)

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

Badges: `Vault API / core` `write` `session or assertion`

Gets a URL of a page that shows the differences between a document file in the vault and a
stateless upload identified by its `file_ref`.

- **Service:** [Objects, versions, properties and files](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/index.md) `MFiles.IRPCObjectOperations`
- **gRPC method:** `/MFiles.IRPCObjectOperations/GetComparisonUrlOfUploadedFile`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/get-comparison-url-of-uploaded-file`
- **Request:** [`GetComparisonUrlOfUploadedFileRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetComparisonUrlOfUploadedFile/index.md#request)
- **Response:** [`GetComparisonUrlOfUploadedFileResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCObjectOperations/GetComparisonUrlOfUploadedFile/index.md#response)
- **Book and level:** Vault API, core
- **Kind:** write
- **Session:** Required: a session (mfiles-session-id-bin metadata) or a session assertion (x-mf-session-assertion metadata).
- **Idempotent:** no
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

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

## Remarks

Fails with not implemented on servers that do not support stateless uploads.

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

## Request: GetComparisonUrlOfUploadedFileRequest

> 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 |
|---|---|---|
| `obj_file_ver_original` | [`ObjFileVer`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjFileVer/index.md) | The object and file version to compare. |
| `obj_file_ver_original.obj_id` | [`ObjID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjID/index.md) | The object that owns the file. |
| `obj_file_ver_original.obj_id.type` | `int32` | The object type ID, for example 0 for documents. In a lookup value, the value list ID (for a lookup to objects, the object type ID). |
| `obj_file_ver_original.obj_id.item_id` | [`ItemID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ItemID/index.md) | The ID of the object within its type, in `item_id.internal_id`. |
| `obj_file_ver_original.file_ver` | [`FileVer`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.FileVer/index.md) | The specific file version, as in `File.file_ver`. |
| `obj_file_ver_original.file_ver.file_id` | [`FileID`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.FileID/index.md) | The file. |
| `obj_file_ver_original.file_ver.type` | [`FileVerType`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.FileVerType/index.md) | `FILE_VER_TYPE_SPECIFIC` for a file version number. Values: `FILE_VER_TYPE_UNINITIALIZED` (0), `FILE_VER_TYPE_LATEST` (1), `FILE_VER_TYPE_ANY` (2), `FILE_VER_TYPE_SPECIFIC` (3). |
| `obj_file_ver_original.file_ver.internal_version` | `int32` | The file version number. |
| `obj_file_ver_original.file_ver.external_repository_version` | `string` | Used only for files in external repositories. Leave empty. |
| `obj_file_ver_original.file_ver.external_repository_sort_key` | `int64` | Used only for files in external repositories. Leave 0. |
| `file_ref` | `string` | The file_ref of a stateless upload ended with FileUploadEnd, to compare with. |
| `file_name` | `string` | The file name of the uploaded file to display in the compare UI. Must include the extension, as a file_ref has no file name. |
| `language` | `string` | The language to use for localization of the compare UI. |
| `allow_download` | `bool` | True if the download options should be enabled in the compare UI, false otherwise. |

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

## Response: GetComparisonUrlOfUploadedFileResponse

> 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 |
|---|---|---|
| `compare_url` | `string` | The document comparison URL. |
