Class
ChatFileSelectSettings

Definition

Constructors

ChatFileSelectSettings()

Declaration

cs-api-definition
public ChatFileSelectSettings()

Properties

Accept

The accept attribute of the file input. Filters the browser file selection dialog.

Declaration

cs-api-definition
[Parameter]
public string Accept { get; set; }

Property Value

string

AllowedExtensions

The list of the allowed file extensions. Used for client-side validation.

Declaration

cs-api-definition
[Parameter]
public List<string> AllowedExtensions { get; set; }

Property Value

List<string>

Capture

The capture attribute of the file input.

Declaration

cs-api-definition
[Parameter]
public string Capture { get; set; }

Property Value

string

MaxFileSize

Defines the maximum file size in bytes.

Declaration

cs-api-definition
[Parameter]
public long? MaxFileSize { get; set; }

Property Value

long?

MinFileSize

Defines the minimum file size in bytes.

Declaration

cs-api-definition
[Parameter]
public long? MinFileSize { get; set; }

Property Value

long?

Multiple

Enables the selection of multiple files. If set to false, only one file can be selected at a time.

Declaration

cs-api-definition
[Parameter]
public bool Multiple { get; set; }

Property Value

bool

OnSelect

Triggered before a file is uploaded.

Declaration

cs-api-definition
[Parameter]
public EventCallback<FileSelectEventArgs> OnSelect { get; set; }

Property Value

EventCallback<FileSelectEventArgs>

Methods

BuildRenderTree(RenderTreeBuilder)

Declaration

cs-api-definition
protected override void BuildRenderTree(RenderTreeBuilder __builder)

Parameters

__builder

RenderTreeBuilder

Overrides ComponentBase.BuildRenderTree(RenderTreeBuilder)

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides ComponentBase.OnInitialized()