|
Allowed files: .zip archives (limitation set in .aspx):
|
No invalid files
|
|
Allowed files: .doc & .txt files (limitation set in code behind):
|
No invalid files
|
 |
| Uploaded % () Total |
 |
| Uploaded files: % () Total files: |
| Uploading file: |
| Elapsed time: Estimated time: Speed: |
|
Note: The largest allowed combined file size for upload in this example is 100MB. This is specified by the
maxRequestLength="102400" set in Web.config file. If you attempt to upload files with total size greater that 100MB
you will get "Page Not Found" error. For more information about uploading large files visit the help article
Uploading Large Files
Source Code & Description
Integrated Validation
RadUpload can automatically validate the size, the extension
and the mime-type of the uploaded files against your preferences. It is only
necessary to set the values of the needed RadUpload validation properties either
declaratively (in .aspx) or in code-behind:
- AllowedFileExtensions - enables the file extension validation.
You can set multiple file extensions if you set the value of this property to a
comma separated list in the ASPX or a string array in the code-behind.
- AllowedMimeTypes - enables the mime-type validation.
You can set multiple mime-types the same way as setting multiple file
extensions.
- MaxFileSize - enables the file size validation. The value
of this property specifies the maximal allowed uploaded file size in
bytes.