FileUpload
FreeDrop 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

Parameters
| Parameter | Type | Description |
|---|---|---|
Accept | string | Allowed types such as image/*, .pdf or a MIME type, comma separated. |
Class | string | Extra CSS classes added to the root element. |
Disabled | bool | Disables interaction. |
Label | string | Visible label text (charts: accessible name; IconButton: accessible name and tooltip). |
MaxFiles | int | Most files that can be added when Multiple is on (default 10). |
MaxFileSize | Int64 | Largest file size in bytes (default 10 MB). |
Multiple | bool | Allows several selected rows: click, Ctrl+click, Shift+click, Shift+arrows, Ctrl+A (VirtualList). |
Style | string | Inline style added to the root element. |
Events
| Event | Type | Description |
|---|---|---|
FilesChanged | EventCallback<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.
Send feedbackVersion 1.0.3