File tree 1 file changed +5
-2
lines changed
spring-web/src/main/java/org/springframework/web/multipart/commons
1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright 2002-2015 the original author or authors.
2
+ * Copyright 2002-2016 the original author or authors.
3
3
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License");
5
5
* you may not use this file except in compliance with the License.
@@ -160,8 +160,11 @@ protected MultipartParsingResult parseRequest(HttpServletRequest request) throws
160
160
catch (FileUploadBase .SizeLimitExceededException ex ) {
161
161
throw new MaxUploadSizeExceededException (fileUpload .getSizeMax (), ex );
162
162
}
163
+ catch (FileUploadBase .FileSizeLimitExceededException ex ) {
164
+ throw new MaxUploadSizeExceededException (fileUpload .getFileSizeMax (), ex );
165
+ }
163
166
catch (FileUploadException ex ) {
164
- throw new MultipartException ("Could not parse multipart servlet request" , ex );
167
+ throw new MultipartException ("Failed to parse multipart servlet request" , ex );
165
168
}
166
169
}
167
170
You can’t perform that action at this time.
0 commit comments