# FileSource

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) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

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

File source specific fields.

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

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-path"></a>`path` | `string` | 1 | The full path of the external location. Can be a UNC path. |
| <a id="f-include_filters"></a>`include_filters` | repeated `string` | 2 | Include filters. |
| <a id="f-exclude_filters"></a>`exclude_filters` | repeated `string` | 3 | Exclude filters. |
| <a id="f-impersonation"></a>`impersonation` | [`Impersonation`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.Impersonation/index.md) | 4 | Impersonation information for accessing the path. |
| <a id="f-include_subfolders"></a>`include_subfolders` | `bool` | 5 | True if subfolders should be processed as well. |
| <a id="f-link_files"></a>`link_files` | `bool` | 6 | True to link files, false to import files. |
| <a id="f-delete_source_files_after_importing"></a>`delete_source_files_after_importing` | `bool` | 7 | True if source files should be deleted after importing. |
| <a id="f-convert_to_searchable_pdf"></a>`convert_to_searchable_pdf` | `bool` | 8 | True to convert the imported file into a searchable PDF file. |
| <a id="f-pdf_ocr_language"></a>`pdf_ocr_language` | `string` | 9 | Empty, or a language identifier for the OCR operation (e.g. "eng" or "fin", see MLanguage.h). |
| <a id="f-read_property_xml_file"></a>`read_property_xml_file` | `bool` | 10 | True to read values from an XML file that has the same name as the imported file. |
| <a id="f-delete_property_xml_file"></a>`delete_property_xml_file` | `bool` | 11 | True to delete the XML file after use. |
| <a id="f-use_pdf_archiving_standard"></a>`use_pdf_archiving_standard` | `bool` | 12 | Use PDF/A format. Ignored if bConvertToSearchablePDF is not true. |
| <a id="f-use_pdf_hyper_compression"></a>`use_pdf_hyper_compression` | `bool` | 13 | Use hyper-compression to make PDF files smaller. Ignored if bConvertToSearchablePDF is not true. |

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

## Used in fields

- [`ExtLocUnion.file_source`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.ExtLocUnion/index.md#f-file_source): File source definition.
