ClassTelerikUploadBase<TFileInfo>
Definition
Namespace:Telerik.Blazor.Components.Common.Upload
Assembly:Telerik.Blazor.dll
Type Parameters:
TFileInfo
Syntax:
public abstract class TelerikUploadBase<TFileInfo> : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable where TFileInfo : FileInfoBase
Inheritance: objectComponentBaseBaseComponentTelerikUploadBase<TFileInfo>
Derived Classes:
Implements:
Inherited Members
Constructors
TelerikUploadBase()
Declaration
protected TelerikUploadBase()
Properties
Accept
The accept attribute of the file input. Filters the browser file selection dialog.
AllowedExtensions
The list of the allowed file extensions. Used for client-side validation.
AriaDescribedBy
Specifies the aria-describedby attribute of the file selection button.
Declaration
[Parameter]
public string AriaDescribedBy { get; set; }
Property Value
AriaLabelledBy
Specifies the aria-labelledby attribute of the file selection button.
Declaration
[Parameter]
public string AriaLabelledBy { get; set; }
Property Value
Capture
The capture attribute of the file input.
DropZoneId
The id of the external TelerikDropZone component.
Declaration
[Parameter]
public string DropZoneId { get; set; }
Property Value
Enabled
Specifies if the component is enabled.
Files
Used to preload a list of files to the Upload component during initialization.
Declaration
public virtual IEnumerable<TFileInfo> Files { get; set; }
Property Value
IEnumerable<TFileInfo>
Id
The id attribute of the file input.
MaxFileSize
Defines the maximum file size in bytes.
Declaration
[Parameter]
public long? MaxFileSize { get; set; }
Property Value
long?
MinFileSize
Defines the minimum file size in bytes.
Declaration
[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.
SelectFilesButtonTemplate
Defines the content of the "Select files..." button.
Declaration
[Parameter]
public RenderFragment SelectFilesButtonTemplate { get; set; }
Property Value
Methods
OpenSelectFilesDialog()
Opens the browser file selection dialog.
Declaration
public void OpenSelectFilesDialog()