Skip to content

CommonsMultipartResolver should support setFileSizeMax [SPR-13200] #17792

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

Closed
spring-projects-issues opened this issue Jul 6, 2015 · 1 comment
Assignees
Labels
type: enhancement A general enhancement
Milestone

Comments

@spring-projects-issues
Copy link
Collaborator

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:

Referenced from: commits 23124d1

@spring-projects-issues
Copy link
Collaborator Author

Juergen Hoeller commented

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

Juergen

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

2 participants