Definition
Namespace:Telerik.Blazor.Components.Common.Upload
Assembly:Telerik.Blazor.dll
Type Parameters:
TFileInfo
TFileTemplateContext
TFileInfoTemplateContext
Syntax:
public abstract class TelerikUploadBase<TFileInfo, TFileTemplateContext, TFileInfoTemplateContext> : BaseComponent, IComponent, IHandleEvent, IHandleAfterRender, IDisposable where TFileInfo : FileInfoBase where TFileTemplateContext : FileTemplateContextBase<TFileInfo> where TFileInfoTemplateContext : FileInfoTemplateContextBase<TFileInfo>
Inheritance: objectComponentBaseBaseComponentTelerikUploadBase<TFileInfo, TFileTemplateContext, TFileInfoTemplateContext>
Derived Classes:
Implements:
Inherited Members
Constructors
protected TelerikUploadBase()
Methods
Removes the files from the list.
public void ClearFiles()
Opens the browser file selection dialog.
public void OpenSelectFilesDialog()
Properties
The accept attribute of the file input. Filters the browser file selection dialog.
[Parameter]
public string Accept { get; set; }
The list of the allowed file extensions. Used for client-side validation.
[Parameter]
public List<string> AllowedExtensions { get; set; }
[Accessibility] Specifies the aria-describedby attribute of the file selection button.
[Parameter]
public string AriaDescribedBy { get; set; }
[Accessibility] Specifies the aria-labelledby attribute of the file selection button.
[Parameter]
public string AriaLabelledBy { get; set; }
The capture attribute of the file input.
[Parameter]
public string Capture { get; set; }
The id of the external TelerikDropZone component.
[Parameter]
public string DropZoneId { get; set; }
FileInfoTemplate
RenderFragment<TFileInfoTemplateContext>
Defines the template used to render file information for each file item.
[Parameter]
public RenderFragment<TFileInfoTemplateContext> FileInfoTemplate { get; set; }
Files
IEnumerable<TFileInfo>
Used to preload a list of files to the Upload component during initialization.
public virtual IEnumerable<TFileInfo> Files { get; set; }
FileTemplate
RenderFragment<TFileTemplateContext>
Defines the template used to render each file item including the actions and progress.
[Parameter]
public RenderFragment<TFileTemplateContext> FileTemplate { get; set; }
Defines the maximum file size in bytes.
[Parameter]
public long? MaxFileSize { get; set; }
Defines the minimum file size in bytes.
[Parameter]
public long? MinFileSize { get; set; }
Enables the selection of multiple files. If set to false, only one file can be selected at a time.
[Parameter]
public bool Multiple { get; set; }
Defines the content of the "Select files..." button.
[Parameter]
public RenderFragment SelectFilesButtonTemplate { get; set; }