Class ChatUIFileAttachmentSettings
Inheritance
Namespace: Syncfusion.EJ2.InteractiveChat
Assembly: Syncfusion.EJ2.dll
Syntax
public class ChatUIFileAttachmentSettings : EJTagHelper
Constructors
ChatUIFileAttachmentSettings()
Declaration
public ChatUIFileAttachmentSettings()
Properties
AllowedFileTypes
Specifies the allowed file types for attachments. Accepts a comma-separated string (e.g., ".jpg,.png").
Declaration
public string AllowedFileTypes { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is "" |
AttachmentClick
Declaration
public string AttachmentClick { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is null |
AttachmentTemplate
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 string AttachmentTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is "" |
ContentTemplate
To get or set value for ContentTemplate.
Declaration
public MvcTemplate<object> ContentTemplate { get; set; }
Property Value
| Type |
|---|
| Syncfusion.EJ2.MvcTemplate<System.Object> |
EnableDragAndDrop
Specifies whether drag and drop is enabled for attachments. Allows users to drag files into the upload area.
Declaration
public bool EnableDragAndDrop { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Boolean | The default value is true |
MaxFileSize
Specifies the maximum file size (in bytes) for attachments. Prevents uploading files larger than this size.
Declaration
public double MaxFileSize { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The default value is 30000000 |
MaximumCount
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 double MaximumCount { get; set; }
Property Value
| Type | Description |
|---|---|
| System.Double | The default value is 10 |
Path
Specifies the path for storing and displaying images.
If both saveFormat and path are configured, the path property takes priority.
Declaration
public string Path { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is "" |
PreviewTemplate
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 string PreviewTemplate { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is "" |
RemoveUrl
Specifies the URL to remove the files from the server.
Declaration
public string RemoveUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is "" |
SaveFormat
Specifies the format in which the attachment will be saved. Accepts values such as 'Blob' or other supported formats.
Declaration
public SaveFormat SaveFormat { get; set; }
Property Value
| Type | Description |
|---|---|
| SaveFormat | The default value is SaveFormat.Blob |
SaveUrl
Specifies the URL to save the uploaded files.
Declaration
public string SaveUrl { get; set; }
Property Value
| Type | Description |
|---|---|
| System.String | The default value is "" |