Class
TelerikUploadBase<TFileInfo>

Definition

Namespace:Telerik.Blazor.Components.Common.Upload

Assembly:Telerik.Blazor.dll

Type Parameters:

TFileInfo

Syntax:

cs-api-definition
public abstract class TelerikUploadBase<TFileInfo> : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable where TFileInfo : FileInfoBase

Inheritance: objectComponentBaseBaseComponentTelerikUploadBase<TFileInfo>

Derived Classes: TelerikFileSelectTelerikUpload

Implements: IComponentIDisposableIHandleAfterRenderIHandleEvent

Inherited Members BaseComponent.ShouldRender()BaseComponent.OnInitializedAsync()BaseComponent.Dispose()BaseComponent.InitLocalizer()BaseComponent.ThrowIfParameterIsNull(object, string)BaseComponent.HaveOptionsChanged(IDictionary<string, object>, IDictionary<string, object>)BaseComponent.GetClassString(params string[])BaseComponent.InvokeAsync<T>(string, params object[])BaseComponent.InvokeAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidAsync(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, params object[])BaseComponent.InvokeComponentMethodAsync<T>(string, CancellationToken, params object[])BaseComponent.InvokeVoidComponentMethodAsync(string, params object[])BaseComponent.InvokeComponentVoidMethodAsync(string, object)BaseComponent.InvokeDisposeAsync()BaseComponent.StateHasChanged()BaseComponent.RootComponentBaseComponent.ClassComponentBase.BuildRenderTree(RenderTreeBuilder)ComponentBase.OnInitialized()ComponentBase.OnParametersSet()ComponentBase.OnParametersSetAsync()ComponentBase.OnAfterRender(bool)ComponentBase.InvokeAsync(Action)ComponentBase.InvokeAsync(Func<Task>)ComponentBase.SetParametersAsync(ParameterView)

Constructors

TelerikUploadBase()

Declaration

cs-api-definition
protected TelerikUploadBase()

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>

AriaDescribedBy

Specifies the aria-describedby attribute of the file selection button.

Declaration

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

Property Value

string

AriaLabelledBy

Specifies the aria-labelledby attribute of the file selection button.

Declaration

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

Property Value

string

Capture

The capture attribute of the file input.

Declaration

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

Property Value

string

DropZoneId

The id of the external TelerikDropZone component.

Declaration

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

Property Value

string

Enabled

Specifies if the component is enabled.

Declaration

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

Property Value

bool

Files

Used to preload a list of files to the Upload component during initialization.

Declaration

cs-api-definition
public virtual IEnumerable<TFileInfo> Files { get; set; }

Property Value

IEnumerable<TFileInfo>

Id

The id attribute of the file input.

Declaration

cs-api-definition
[Parameter]
public string Id { 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

SelectFilesButtonTemplate

Defines the content of the "Select files..." button.

Declaration

cs-api-definition
[Parameter]
public RenderFragment SelectFilesButtonTemplate { get; set; }

Property Value

RenderFragment

Methods

ClearFiles()

Removes the files from the list.

Declaration

cs-api-definition
public void ClearFiles()

OnAfterRenderAsync(bool)

Declaration

cs-api-definition
protected override Task OnAfterRenderAsync(bool firstRender)

Parameters

firstRender

bool

Returns

Task

Overrides BaseComponent.OnAfterRenderAsync(bool)

OpenSelectFilesDialog()

Opens the browser file selection dialog.

Declaration

cs-api-definition
public void OpenSelectFilesDialog()