alexa
menu

ASP.NET MVC - EJ2

  • Code Examples
  • Upgrade Guide
  • User Guide
  • Demos
  • Support
  • Forums
  • Download

    Show / Hide Table of Contents

    Class ChatUIFileAttachmentSettingsBuilder

    Inheritance
    System.Object
    Syncfusion.EJ2.ControlBuilder
    ChatUIFileAttachmentSettingsBuilder
    Namespace: Syncfusion.EJ2.InteractiveChat
    Assembly: Syncfusion.EJ2.dll
    Syntax
    public class ChatUIFileAttachmentSettingsBuilder : ControlBuilder

    Constructors

    ChatUIFileAttachmentSettingsBuilder()

    Declaration
    public ChatUIFileAttachmentSettingsBuilder()

    ChatUIFileAttachmentSettingsBuilder(ChatUIFileAttachmentSettings)

    Declaration
    public ChatUIFileAttachmentSettingsBuilder(ChatUIFileAttachmentSettings model)
    Parameters
    Type Name Description
    ChatUIFileAttachmentSettings model

    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
    Type
    ChatUIFileAttachmentSettingsBuilder

    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
    Type
    ChatUIFileAttachmentSettingsBuilder

    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
    Type
    ChatUIFileAttachmentSettingsBuilder

    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
    Type
    ChatUIFileAttachmentSettingsBuilder

    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
    Type
    ChatUIFileAttachmentSettingsBuilder

    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
    Type
    ChatUIFileAttachmentSettingsBuilder

    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
    Type
    ChatUIFileAttachmentSettingsBuilder

    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
    Type
    ChatUIFileAttachmentSettingsBuilder

    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
    Type
    ChatUIFileAttachmentSettingsBuilder

    SaveFormat(SaveFormat)

    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
    Type Name Description
    SaveFormat value
    Returns
    Type
    ChatUIFileAttachmentSettingsBuilder

    SaveUrl(String)

    Specifies the URL to save the uploaded files.

    Declaration
    public ChatUIFileAttachmentSettingsBuilder SaveUrl(string value)
    Parameters
    Type Name Description
    System.String value
    Returns
    Type
    ChatUIFileAttachmentSettingsBuilder
    Back to top Generated by DocFX
    Copyright © 2001 - 2025 Syncfusion Inc. All Rights Reserved