File Size in EJ 1 ASP.NET Core UploadBox
25 Apr 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.
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, we cannot browse and upload the files.