Class
FileManagerUploadSettings

The component that configures the upload settings.

Definition

Constructors

FileManagerUploadSettings()

Declaration

cs-api-definition
public FileManagerUploadSettings()

Properties

AllowedExtensions

The list of the allowed file extensions.

Declaration

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

Property Value

List<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?

OnCancel

Triggered when a file upload is canceled.

Declaration

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

Property Value

EventCallback<UploadCancelEventArgs>

OnError

Triggered when a file upload has failed.

Declaration

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

Property Value

EventCallback<UploadErrorEventArgs>

OnProgress

Triggered when the progress of the file upload is changed.

Declaration

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

Property Value

EventCallback<UploadProgressEventArgs>

OnRemove

Triggered before a file is removed.

Declaration

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

Property Value

EventCallback<UploadEventArgs>

OnSelect

Triggered when a file is selected for upload.

Declaration

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

Property Value

EventCallback<UploadSelectEventArgs>

OnSuccess

Triggered when a file has been uploaded.

Declaration

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

Property Value

EventCallback<UploadSuccessEventArgs>

OnUpload

Triggered before a file is uploaded.

Declaration

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

Property Value

EventCallback<UploadEventArgs>

RemoveField

Sets the FormData key which contains the list of file names that are submitted to removeUrl.

Declaration

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

Property Value

string

RemoveUrl

The URL of the handler which is responsible for the removal of the uploaded files (if any).

Declaration

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

Property Value

string

SaveField

Sets the FormData key which contains the files submitted to saveUrl.

Declaration

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

Property Value

string

SaveUrl

The URL of the handler that will receive the submitted file(s).

Declaration

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

Property Value

string

WithCredentials

Configures whether credentials (cookies, headers) will be sent for cross-site requests.

Declaration

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

Property Value

bool

Methods

Dispose()

Declaration

cs-api-definition
public void Dispose()

Implements IDisposable.Dispose()

OnInitialized()

Declaration

cs-api-definition
protected override void OnInitialized()

Overrides ComponentBase.OnInitialized()