[ https://issues.apache.org/jira/browse/WW-5285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17694333#comment-17694333 ]
Lukasz Lenart commented on WW-5285: ----------------------------------- The current implementation is a global option, the same as {{struts.multipart.maxSize}} which applies to whole request (and not to a single file). The {{maximumSize}} option in interceptor applies to a single file, and checking the number of files here is way too late as the request was already parsed. https://struts.apache.org/core-developers/file-upload.html#file-size-limits > Upgrade commons-fileupload to ver 1.5 and add option to limit number of > accepted files > -------------------------------------------------------------------------------------- > > Key: WW-5285 > URL: https://issues.apache.org/jira/browse/WW-5285 > Project: Struts 2 > Issue Type: Improvement > Components: Core > Reporter: Lukasz Lenart > Assignee: Lukasz Lenart > Priority: Major > Fix For: 6.2.0 > > Time Spent: 40m > Remaining Estimate: 0h > > With a new version of commons-fileupload a new option has been added to limit > number of uploaded files (not size, but number). It would be good to support > this in Struts as well by adding a new constant "struts.multipart.maxFiles" > [https://github.com/apache/commons-fileupload/pull/185] > -- This message was sent by Atlassian Jira (v8.20.10#820010)