New to Telerik UI for Blazor? Download Free 30-day trial
Upload - Validation
- EXAMPLE
- VIEW SOURCE
- EDIT IN TELERIK REPL
- Change Theme
default
Upload PDF
Drag and drop files here to upload
You can only upload PDF files.
Upload Image
Drag and drop files here to upload
You can only upload GIF, JPG, PNG files.
Size Validation
Drag and drop files here to upload
Maximum allowed file size is 4MB
- Validation.razor
- UploadController.cs
Loading the demo source code...please wait.
Description
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.
This Blazor Upload 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.