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

Upload - Validation

Upload PDF
Select files...
You can only upload PDF files.
Upload Image
Select files...
You can only upload GIF, JPG, PNG files.
Size Validation
Select files...
Maximum allowed file size is 4MB
  • Validation.razor
Loading the demo source code...please wait.


The Telerik Upload component can validate selected files on the client based on their extension and size so that the user cannot upload unwanted files. This example allows only .jpg and .png files that are between 1KB and 4MB.

Support & Learning Resources

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