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

Closed
spring-issuemaster opened this issue Jul 6, 2015 · 1 comment
Closed
Assignees
Milestone

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster 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

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.