Hi,
We have a situation in a page where the user needs to be able to upload multiple files, MaxFileSize=10MB.
Because the number of potential given files is apparently not limitable through means of just FileUpload itself, surely the Kestrel MaxRequestBodySize is permitted to be exceeded at some time on the client-side.
There is no problem if a single file is bigger than MaxRequestBodySize, I see that the file is declared in UI in the FileUpload control but it is in fact NOT uploaded tot the temp folder on the server, no error:
And after PostBack, the custom server-side validation does its job:
On the other hand, if the user gives too many valid sized smaller files that by their total size exceed MaxRequestBodySize, the front-end crashes. Look:
The error appears in the console without any of the files being uploaded. Not a single file is uploaded.
Now, because of the way the page is designed and the process goes along, while the control IsBusy, the page is locked out and the user cannot interact with it, waiting forever for the supposed upload to end. The user is forced to reload the whole page and lose the work done prior! This is a UX breaker.
Switching to a multiple single-file repeated upload design would be a chore for the user (again, UX issue and business process hinderance) and surely, the Kestrel MaxRequestBodySize needs to be there.
How can the total number of specified files and the total size be managed and validated on the client-side, to avoid this apparent bug with the control?
PS: Is there a way to configure/adjust the FileUpload control to make server uploads(attempted uploads) for each file separately? Because, from what I can tell, the BP error is latched onto the control trying to upload the entire bunch in one server call.







