Therefore, I use Spring Webflow to upload the file and CommonsMultipartResolver with the maximum file size setting.
When the maximum file size exceeds the value of CommonsMultipartResolver , it throws a MaxUploadSizeExceededException , which I will catch and handle just fine, returning to the original view using the new ModelAndView with an error message added to the model.
Is the problem that the STILL browser goes through the file upload process anyway? Is there any way to stop this? I donβt want my users to spend their time downloading 10 or 20 megabytes of files to report that the maximum limit is 5 megabytes (or some similar example) ...
source share