AIChatControl.FileUploadSettings Property
Gets or sets file upload settings, such as the maximum file size, allowed file types and extensions, and the maximum number of files a user can attach to a message. This is a dependency property.
Namespace: DevExpress.AIIntegration.Wpf.Chat
Assembly: DevExpress.AIIntegration.Wpf.Chat.v26.1.dll
NuGet Package: DevExpress.AIIntegration.Wpf.Chat
Declaration
Property Value
| Type | Description |
|---|---|
| DevExpress.AIIntegration.Blazor.Chat.Internal.IFileUploadSettings | An object that exposes file upload settings. |
Remarks
Users can attach files directly to their chat messages. AI analyzes document content (such as text files, PDFs, images) and delivers more context-aware responses.

To activate file upload:
- Enable the FileUploadEnabled property to allow users to attach files.
- Configure additional settings based on your project requirements (the maximum file size, allowed file types/extensions, the maximum number of files that users can attach to a message).
xmlns:dxaichat="http://schemas.devexpress.com/winfx/2008/xaml/aichat"
xmlns:chat="clr-namespace:DevExpress.AIIntegration.Blazor.Chat;assembly=DevExpress.AIIntegration.Blazor.Chat.v25.1"
xmlns:system="clr-namespace:System;assembly=mscorlib"
<dxaichat:AIChatControl
x:Name="aiChatControl"
FileUploadEnabled="True"
UseStreaming="True"
HorizontalAlignment="Stretch"
VerticalAlignment="Stretch"
Margin="10">
<dxaichat:AIChatControl.FileUploadSettings>
<chat:DxAIChatFileUploadSettings MaxFileSize="5000000" MaxFileCount="5">
<chat:DxAIChatFileUploadSettings.AllowedFileExtensions>
<system:String>.png</system:String>
<system:String>.pdf</system:String>
<system:String>.txt</system:String>
</chat:DxAIChatFileUploadSettings.AllowedFileExtensions>
<chat:DxAIChatFileUploadSettings.FileTypeFilter>
<system:String>image/png</system:String>
<system:String>application/pdf</system:String>
<system:String>text/plain</system:String>
</chat:DxAIChatFileUploadSettings.FileTypeFilter>
</chat:DxAIChatFileUploadSettings>
</dxaichat:AIChatControl.FileUploadSettings>
</dxaichat:AIChatControl>
Tip
See the following article for more information on MIME types (FileTypeFilter): Common Media Types.
Refer to the following help topic for additional information: AI Chat Control