Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CommonsMultipartResolver should support setFileSizeMax [SPR-13200] #17792

spring-projects-issues opened this issue Jul 6, 2015 · 1 comment


Copy link

@spring-projects-issues spring-projects-issues commented Jul 6, 2015

Ponymz opened SPR-13200 and commented

Current CommonsMultipartResolver contains attribute maxUploadSize, it invokes apache commons fileupload.setSizeMax() which limits the size of the whole request. It should provide another attribute which invokes apache commons fileupload.setFileSizeMax() which limits the size of a single file.

Note: Now even I create a customMultipartResolver which extends CommonsMultipartResolver, and then invoke this.getFileupload().setFileSizeMax(), it doesn' work.

Issue Links:

  • #18229 CommonsMultipartResolver.setMaxUploadSizePerFile() does not work if encoding does not match the default encoding
  • #19204 CommonsMultipartResolver should explicitly convert FileSizeLimitExceededException next to SizeLimitExceededException

Referenced from: commits 23124d1

Copy link
Collaborator Author

@spring-projects-issues spring-projects-issues commented Jul 6, 2015

Juergen Hoeller commented

Thanks for raising this! I've added it as setMaxUploadSizePerFile on CommonsFileUploadSupport.


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants