RayCraftDocs
v1.0.3 raycraft.dev
On this page

FileUpload

Free

Drop zone and file picker. It checks size, type and count, lists the accepted files and raises FilesChanged; reading the content is up to you (IBrowserFile.OpenReadStream).

Example

FileUpload control

Parameters

ParameterTypeDescription
AcceptstringAllowed types such as image/*, .pdf or a MIME type, comma separated.
ClassstringExtra CSS classes added to the root element.
DisabledboolDisables interaction.
LabelstringVisible label text (charts: accessible name; IconButton: accessible name and tooltip).
MaxFilesintMost files that can be added when Multiple is on (default 10).
MaxFileSizeInt64Largest file size in bytes (default 10 MB).
MultipleboolAllows several selected rows: click, Ctrl+click, Shift+click, Shift+arrows, Ctrl+A (VirtualList).
StylestringInline style added to the root element.

Events

EventTypeDescription
FilesChangedEventCallback<IReadOnlyList<IBrowserFile>>Raised with the accepted files after every change.

Package

FileUpload is part of RayCraft Free. Package: RayCraft.Blazor. It comes from nuget.org. See Getting started.