Blazor FileInput

The Blazor Bootstrap FileInput component provides a standard Bootstrap file control with validation and removal.
API Documentation

Basic usage #

FileInput uses Bootstrap's standard visible file-control presentation. Use DragAndDropFileInput when a drop area is needed.

Multiple files and removal #

Set Multiple to allow a selected file to be removed without clearing the others.

Sizes #

Use Size to apply Bootstrap's form-control-lg and form-control-sm file-control sizes.

Validation #

FileInput validates sizes, counts, and extensions selected from the file dialog. Configure validation-message templates with {FileName}, {MaxFileSize}, {AllowedFileTypes}, or {MaxFileCount} where applicable; the single-file message is static.

Form validation #

Use FilesChanged to update a form model and combine file-selection rules with standard form validation.

Hint text and unrestricted extensions #

An empty AllowedFileTypes collection accepts every extension while other configured rules remain active.

Rejoining the server...

Rejoin failed... trying again in seconds.

Failed to rejoin.
Please retry or reload the page.

The session has been paused by the server.

Failed to resume the session.
Please reload the page.