7 Sep 20171 minute to read
Maximum File Size for UploadBox
In the UploadBox control, you can browse files with the size going up to gigabytes. You can restrict the files from being browsed using the FileSize property. When you do not use this property, it takes a default size, 31457280B, that is, 31MB. When this size exceeds, we cannot browse the file.
- Add the following code example to the corresponding View page to render the UploadBox control with the customized file size.
To know about file action, we need to refer link:
The following screenshot displays UploadBox control with customized file size.
When you want to browse the file within the fileSize, you can browse and upload the files.
When you try to browse the file with exceeded FileSize, an error message will be displayed as an alert.You can customize the error message by converting the file size into mb and display the corresponding value in error message.
Now you will get the error message as shown in the below image
By default, UploadBox will display the file size as bytes value in error message.