Inputs
FileUpload
Bit.BlazorUI
BitFileUpload sends the files a user picks, drops or pastes to a server endpoint over HTTP - whole or in resumable chunks - with per-file progress, pause, cancel, retry and server-side removal, validation on arrival, and a fully themable, templatable and screen-reader friendly UI. For file selection without uploading, use BitFileInput.
Forms & accessibility
Files already on the server, accessibility, and validating the selection inside an EditForm.
Preloaded files
PreloadedFiles lists the files a record already has on the server. They are never uploaded, show
the PreloadedFileMessage, count towards MaxCount / MaxTotalSize, survive
Reset, and their remove button deletes them through the RemoveUrl with their FileId.
Read each one's Status back when saving.
Remove an existing attachment or add new ones.
invoice.pdf
80KB
Saved with this record

logo.png
14KB
Saved with this record
No file selected. 2 already attached.
Accessibility
Every control is a real button with a visible focus ring, and each item action is labelled with its file
name. The list is named by FileListAriaLabel, progress bars expose their value, and a live region
announces selections and outcomes - reworded or translated through AnnouncementProvider.
AriaLabel names the browse button when its text is not enough.
Form validation
Inside an EditForm the file upload is a form field like any other. Its Value is the names of
the files that are part of the selection joined with commas (report.pdf,photo.png), or null while
there are none, so a [Required] or a [RegularExpression] on the bound property validates it.
A file waiting to be uploaded, and a preloaded one, count; one the validations rejected, or whose upload
failed, was canceled or was removed, does not. While the value is invalid the browse button turns to the
error color. Required also marks the hidden input the value travels in, which Name makes
readable by a plain form post, and emptying the bound value resets the selection.
Feedback
Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.