New to Telerik UI for Blazor? Download Free 30-day trial

FileSelect - Validation

Select PDF
Drag and drop files here
Select only PDF files.
Select Image
Drag and drop files here
Select only GIF, JPG, PNG files.
Size Validation
Drag and drop files here
Maximum allowed file size is 4MB.
  • Validation.razor
Loading the demo source code...please wait.

Description

The Telerik FileSelect component can validate selected files on the client, based on their extension and size, so that the user cannot select unwanted files. This example demonstrates FileSelect components that allow only .pdf files, .gif / .jpg / .png files, or files of size between 1KB and 4MB.
This FileSelect Validation example is part of a unique collection of hundreds of Blazor demos, with which you can see all Telerik UI for Blazor components and their features in action. View the source code of the demos from the library or directly adapt, and edit them and their theme appearance in Telerik REPL for Blazor or ThemeBuilder.

Support & Learning Resources

An error has occurred. This application may no longer respond until reloaded.