# TextControlSettings.ImageFileDirectory Property

> Determines the directory path where image 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.ImageFileDirectory Property
- **435 words**
- **Web URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/imagefiledirectory-property/
- **LLMs URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/imagefiledirectory-property/llms.txt
- **LLMs-Full URL:** https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/imagefiledirectory-property/llms-full.txt

---

### Description

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

### Syntax

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

```vbnet
Public Property ImageFileDirectory As String
```

### Examples

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

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

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

---

## Nearby

- **Previous:** [TextControlSettings.Height Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/height-property/llms-full.txt)
- **Next:** [TextControlSettings.SaveDocumentQuestionDialogEnabled Property](https://docs.textcontrol.com/tx-text-control-dotnet-server/reference/txtextcontrol-web-mvc/textcontrolsettings/savedocumentquestiondialogenabled-property/llms-full.txt)
