Class TelerikUploadBase<TFileInfo>
Inherited Members
Namespace: Telerik.Blazor.Components.Common.Upload
Assembly: Telerik.Blazor.dll
Syntax
public abstract class TelerikUploadBase<TFileInfo> : BaseComponent, IDisposable, IUploadContainer where TFileInfo : FileInfoBase
Type Parameters
TFileInfo
|
Constructors
TelerikUploadBase()
Declaration
protected TelerikUploadBase()
Properties
Accept
The accept attribute of the file input. Filters the browser file selection dialog.
Declaration
public string Accept { get; set; }
Property Value
System.String
|
AllowedExtensions
The list of the allowed file extensions. Used for client-side validation.
Declaration
public List<string> AllowedExtensions { get; set; }
Property Value
System.Collections.Generic.List<System.String>
|
AriaDescribedBy
Specifies the aria-describedby attribute of the file selection button.
Declaration
public string AriaDescribedBy { get; set; }
Property Value
System.String
|
AriaLabelledBy
Specifies the aria-labelledby attribute of the file selection button.
Declaration
public string AriaLabelledBy { get; set; }
Property Value
System.String
|
Capture
The capture attribute of the file input.
Declaration
public string Capture { get; set; }
Property Value
System.String
|
DropZoneId
The id of the external TelerikDropZone component.
Declaration
public string DropZoneId { get; set; }
Property Value
System.String
|
Enabled
Specifies if the component is enabled.
Declaration
public bool Enabled { get; set; }
Property Value
System.Boolean
|
Files
Used to preload a list of files to the Upload component during initialization.
Declaration
public virtual IEnumerable<TFileInfo> Files { get; set; }
Property Value
System.Collections.Generic.IEnumerable<TFileInfo>
|
Id
The id attribute of the file input.
Declaration
public string Id { get; set; }
Property Value
System.String
|
MaxFileSize
Defines the maximum file size in bytes.
Declaration
public Nullable<long> MaxFileSize { get; set; }
Property Value
System.Nullable<System.Int64>
|
MinFileSize
Defines the minimum file size in bytes.
Declaration
public Nullable<long> MinFileSize { get; set; }
Property Value
System.Nullable<System.Int64>
|
Multiple
Enables the selection of multiple files. If set to false, only one file can be selected at a time.
Declaration
public bool Multiple { get; set; }
Property Value
System.Boolean
|
SelectFilesButtonTemplate
Defines the content of the "Select files..." button.
Declaration
public RenderFragment SelectFilesButtonTemplate { get; set; }
Property Value
Microsoft.AspNetCore.Components.RenderFragment
|
Methods
ClearFiles()
Removes the files from the list.
Declaration
public void ClearFiles()
OnAfterRenderAsync(Boolean)
Declaration
protected override Task OnAfterRenderAsync(bool firstRender)
Parameters
System.Boolean
firstRender
|
Returns
System.Threading.Tasks.Task
|
Overrides
OpenSelectFilesDialog()
Opens the browser file selection dialog.
Declaration
public void OpenSelectFilesDialog()