WebFileUploader includes sophisticated built-in validation before user can select
the file to be uploaded. It can perform validation by file types, file count, and
custom validation.
In this topic, you will learn how to validate upload by file types and file count.
To validate upload
- Right-click on WebFileUploader control and choose Properties.
- Set FilesCount to 5 and FileTypes
to *.zip;*.rar.
- Run the project. In this case, you can only upload file up to 5 files and each file
type only contains either .zip or .rar.