# TextControlSettings.DocumentFileDirectory Property

> Determines the directory path where document files are stored on the web server.

- **Product:** TX Text Control .NET Server
- **Section:** Reference
- **Kind:** Property
- **Introduced:** 23.0
- **Namespace:** `TXTextControl.Web.MVC`
- **Package:** `TXTextControl.Web` (assembly `TXTextControl.Web.DocumentEditor.dll`, from nuget.org, the private NuGet feed or Text Control Offline Packages)
- **Path:** TX Text Control .NET Server > Reference > TXTextControl.Web.MVC > TextControlSettings.DocumentFileDirectory Property
- **442 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/documentfiledirectory-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/documentfiledirectory-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/documentfiledirectory-property/llms-full.txt

---

### Description

Determines the directory path where document files are stored on the web server.

### Syntax

```csharp
public string DocumentFileDirectory { get; set; }
```

```vbnet
Public Property DocumentFileDirectory As String
```

### Examples

In the current ASP.NET Core integration, `DocumentFileDirectory` is configured through `TextControlSettings`. The following example sets it while creating the editor configuration.

```csharp
textControlSettings.DocumentFileDirectory = @"App_Data\document.docx";
if (!string.IsNullOrWhiteSpace(textControlSettings.DocumentFileDirectory))
{
    Console.WriteLine($"Document File Directory: {textControlSettings.DocumentFileDirectory}");
}
```

```vbnet
textControlSettings.DocumentFileDirectory = "App_Data\document.docx"
If Not String.IsNullOrWhiteSpace(textControlSettings.DocumentFileDirectory) Then
    Console.WriteLine($"Document File Directory: {textControlSettings.DocumentFileDirectory}")
End If
```

---

## Nearby

- **Previous:** [TextControlSettings.Dock Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/dock-property/llms-full.txt)
- **Next:** [TextControlSettings.DocumentTargetMarkers Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/documenttargetmarkers-property/llms-full.txt)
