Skip to content

StandardServletMultipartResolver should support MaxUploadSizeExceededException against common servers [SPR-9294] #13932

Closed
@spring-projects-issues

Description

@spring-projects-issues

Marten Deinum opened SPR-9294 and commented

Currently all exceptions thrown by the standard multipart support lead to the generic MultipartException. It would be nice if, like the CommonsMultipartResolver, there could be differentiated between a general exception or a MaxUploadSizeExceededException.

Probably not an easy task as it depends on the container how it is handled and which exception is thrown.

For tomcat it is:

org.apache.tomcat.util.http.fileupload.FileUploadBase$FileSizeLimitExceededException.

Affects: 3.1.1

Issue Links:

Referenced from: commits 1922f03

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions