Map<Object, Object> model = new HashMap<Object, Object>();
if (exception instanceof MaxUploadSizeExceededException)
{
model.put("errors", exception.getMessage());
model.put("fileList", "'empty'");
model.put("uploadedFile", new UploadedFile());
return new ModelAndView("file/upload", (Map)model);
} else {
exception.printStackTrace();
return null;
//model.put("errors", "Unexpected error: " + exception.getMessage());