# ThumbnailStatus

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.ThumbnailStatus/

Index status enumeration.

- **Full name:** `MFiles.ThumbnailStatus`
- **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-THUMBNAIL_STATUS_NO_ACTIONS_ALLOWED"></a>`THUMBNAIL_STATUS_NO_ACTIONS_ALLOWED` | 0 | No actions allowed. |
| <a id="v-THUMBNAIL_STATUS_NOT_GENERATED"></a>`THUMBNAIL_STATUS_NOT_GENERATED` | 1 | File uploaded but no thumbnail generated yet for the file. Set to this value after check-in. |
| <a id="v-THUMBNAIL_STATUS_GENERATED"></a>`THUMBNAIL_STATUS_GENERATED` | 2 | A thumbnail generated. Set to this value when a thumbnail for the file is generated. |
| <a id="v-THUMBNAIL_STATUS_DO_NOT_GENERATE"></a>`THUMBNAIL_STATUS_DO_NOT_GENERATE` | 3 | Denied to generate. For example, set to this value when any thumbnail generation for the file is denied by an administrator. |
| <a id="v-THUMBNAIL_STATUS_CANNOT_GENERATE"></a>`THUMBNAIL_STATUS_CANNOT_GENERATE` | 4 | Cannot generate. Set to this value when there is no registered thumbnail generator for the file format. |
| <a id="v-THUMBNAIL_STATUS_FAILED_TO_GENERATE"></a>`THUMBNAIL_STATUS_FAILED_TO_GENERATE` | 5 | Failed to generate. For example, set to this value a thumbnail for the file was tried to be generated but it failed due to some reason. |
| <a id="v-THUMBNAIL_STATUS_FAILED_MISSING_DATA_FILE"></a>`THUMBNAIL_STATUS_FAILED_MISSING_DATA_FILE` | 6 | Failed to generate because the data file is no longer available. |

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

## Used by methods

- [IRPCThumbnails.GetDocumentFileThumbnail](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCThumbnails/GetDocumentFileThumbnail/index.md): Gets a classic thumbnail or a first-page preview of one file of an object version, as PNG.

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

## Used in fields

- [`GetDocumentFileThumbnailResponse.thumbnail_status`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCThumbnails/GetDocumentFileThumbnail/index.md#response): Whether a thumbnail was returned: `THUMBNAIL_STATUS_GENERATED` means `thumbnail` has data. See the remarks for the other values.
