So I'm using Spring Webflow to upload a file and the CommonsMultipartResolver
with a max file size param.
When the max file size is exceed the CommonsMultipartResolver
throws a MaxUploadSizeExceededException
which I'm catching and handling just fine by returning to my original view with a new ModelAndView with an error message added to the model.
Problem is, the browser STILL goes through the process of uploading the file anyway?? Is there any way to stop this? I don't really want my users to spend their time uploading 10 or 20 meg files only to be told the max limit is 5 meg (or some similar example)...