Class ChatUIFileAttachmentSettingsBuilder
Inheritance
System.Object
Syncfusion.EJ2.ControlBuilder
ChatUIFileAttachmentSettingsBuilder
Assembly: Syncfusion.EJ2.dll
Syntax
public class ChatUIFileAttachmentSettingsBuilder : ControlBuilder
Constructors
ChatUIFileAttachmentSettingsBuilder()
Declaration
public ChatUIFileAttachmentSettingsBuilder()
ChatUIFileAttachmentSettingsBuilder(ChatUIFileAttachmentSettings)
Declaration
public ChatUIFileAttachmentSettingsBuilder(ChatUIFileAttachmentSettings model)
Parameters
Methods
AllowedFileTypes(String)
Specifies the allowed file types for attachments.
Accepts a comma-separated string (e.g., ".jpg,.png").
Declaration
public ChatUIFileAttachmentSettingsBuilder AllowedFileTypes(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Returns
AttachmentClick(String)
Event raised when a attachment item is clicked in the Chat UI component wither before sending or after the attachment is sent.
Declaration
public ChatUIFileAttachmentSettingsBuilder AttachmentClick(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Returns
AttachmentTemplate(String)
Specifies a custom template for rendering attachments in footer.
Accepts a string or function to define the HTML structure or rendering logic for attachments (e.g., thumbnails, icons, file metadata).
If not provided, the default attachments will be rendered.
Declaration
public ChatUIFileAttachmentSettingsBuilder AttachmentTemplate(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Returns
EnableDragAndDrop(Boolean)
Specifies whether drag and drop is enabled for attachments.
Allows users to drag files into the upload area.
Declaration
public ChatUIFileAttachmentSettingsBuilder EnableDragAndDrop(bool value)
Parameters
| Type |
Name |
Description |
| System.Boolean |
value |
|
Returns
MaxFileSize(Double)
Specifies the maximum file size (in bytes) for attachments.
Prevents uploading files larger than this size.
Declaration
public ChatUIFileAttachmentSettingsBuilder MaxFileSize(double value)
Parameters
| Type |
Name |
Description |
| System.Double |
value |
|
Returns
MaximumCount(Double)
Specifies the maximum number of attachments allowed per message.
Limits the number of files that can be uploaded and attached to a single message.
Must be a positive integer.
Declaration
public ChatUIFileAttachmentSettingsBuilder MaximumCount(double value)
Parameters
| Type |
Name |
Description |
| System.Double |
value |
|
Returns
Path(String)
Specifies the path for storing and displaying images.
If both saveFormat and path are configured, the path property takes priority.
Declaration
public ChatUIFileAttachmentSettingsBuilder Path(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Returns
PreviewTemplate(String)
Specifies a custom template for rendering attachment previews.
Accepts a string or function to define the HTML structure or rendering logic for attachment previews (e.g., thumbnails, icons, file metadata).
If not provided, the default preview will be rendered.
Declaration
public ChatUIFileAttachmentSettingsBuilder PreviewTemplate(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Returns
RemoveUrl(String)
Specifies the URL to remove the files from the server.
Declaration
public ChatUIFileAttachmentSettingsBuilder RemoveUrl(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Returns
Specifies the format in which the attachment will be saved.
Accepts values such as 'Blob' or other supported formats.
Declaration
public ChatUIFileAttachmentSettingsBuilder SaveFormat(SaveFormat value)
Parameters
Returns
SaveUrl(String)
Specifies the URL to save the uploaded files.
Declaration
public ChatUIFileAttachmentSettingsBuilder SaveUrl(string value)
Parameters
| Type |
Name |
Description |
| System.String |
value |
|
Returns