# ObjFileSourceType

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

Object file source type enumeration.

- **Full name:** `MFiles.ObjFileSourceType`
- **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-OBJ_FILE_SOURCE_TYPE_UNDEFINED"></a>`OBJ_FILE_SOURCE_TYPE_UNDEFINED` | 0 | Undefined object file source. |
| <a id="v-OBJ_FILE_SOURCE_TYPE_BLANK_TEMPLATE"></a>`OBJ_FILE_SOURCE_TYPE_BLANK_TEMPLATE` | 1 | Blank template object file source. |
| <a id="v-OBJ_FILE_SOURCE_TYPE_USER_DEFINED_TEMPLATE"></a>`OBJ_FILE_SOURCE_TYPE_USER_DEFINED_TEMPLATE` | 2 | User defined template object file source. |
| <a id="v-OBJ_FILE_SOURCE_TYPE_UPLOADED_FILE"></a>`OBJ_FILE_SOURCE_TYPE_UPLOADED_FILE` | 3 | Uploaded object file source. |
| <a id="v-OBJ_FILE_SOURCE_TYPE_UPLOADED_FILES"></a>`OBJ_FILE_SOURCE_TYPE_UPLOADED_FILES` | 4 | Uploaded object file source. |
| <a id="v-OBJ_FILE_SOURCE_TYPE_EMPTY_FILES"></a>`OBJ_FILE_SOURCE_TYPE_EMPTY_FILES` | 5 | Empty object file source (one or more files). The file contents have not been uploaded yet; only each file's title and extension are known at this point. This type may only be used when the object is created as a draft (the draft flag must be set); otherwise the request is rejected. |
| <a id="v-OBJ_FILE_SOURCE_TYPE_FILE_CONTENT"></a>`OBJ_FILE_SOURCE_TYPE_FILE_CONTENT` | 6 | Inline file content object file source. |

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

## Used in fields

- [`ObjFileSource.type`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ObjFileSource/index.md#f-type): Which member of `data` is used. Must match the member that is set.
