# OCRUploadedFileState

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Enums](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/index.md)

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

The state of an OCR job of a stateless upload (OCRUploadedFile).

- **Full name:** `MFiles.OCRUploadedFileState`
- **Proto file:** [`mfiles/enums.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/enums.proto)

<a id="values"></a>

## Values

| Name | Number | Description |
|---|---|---|
| <a id="v-OCRUPLOADED_FILE_STATE_UNSPECIFIED"></a>`OCRUPLOADED_FILE_STATE_UNSPECIFIED` | 0 | Not specified. |
| <a id="v-OCRUPLOADED_FILE_STATE_QUEUED"></a>`OCRUPLOADED_FILE_STATE_QUEUED` | 1 | The job is waiting for a server to process it. |
| <a id="v-OCRUPLOADED_FILE_STATE_RUNNING"></a>`OCRUPLOADED_FILE_STATE_RUNNING` | 2 | A server is processing the job. |
| <a id="v-OCRUPLOADED_FILE_STATE_COMPLETED"></a>`OCRUPLOADED_FILE_STATE_COMPLETED` | 3 | The job has completed. The result is available as a file_ref. |
| <a id="v-OCRUPLOADED_FILE_STATE_FAILED"></a>`OCRUPLOADED_FILE_STATE_FAILED` | 4 | The job has failed. The error is available. |
| <a id="v-OCRUPLOADED_FILE_STATE_CANCELED"></a>`OCRUPLOADED_FILE_STATE_CANCELED` | 5 | The job has been canceled. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCScanningAndOCR.GetOCRUploadedFileStatus](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCScanningAndOCR/GetOCRUploadedFileStatus/index.md): Gets the state of an OCR job started with OCRUploadedFile and, when it has completed, its result as a `file_ref`. Optionally requests the cancellation of the job.

<a id="used-in-fields"></a>

## Used in fields

- [`GetOCRUploadedFileStatusResponse.state`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCScanningAndOCR/GetOCRUploadedFileStatus/index.md#response): The state of the job.
