File Upload
Stylized file uploader with previews.
Use this example to explore default behavior, customization points, and accessibility-friendly patterns in a real Blazor page.
File Upload
MgFileUploadA stylized file uploader with support for filters and image previews.
API Reference
MgFileUpload
| Property | Type | Default | Description |
|---|---|---|---|
| DisplayText | string | "" | Button text to show for file chooser. |
| ShowPreview | bool | false | Show an image preview for image files. |
| Filter | string | "*/*" | Accept filter (e.g., image/*, .pdf). |
| FileChosen | EventCallback<IBrowserFile> | - | Fired when a user selects a file. |