[
https://issues.apache.org/jira/browse/WW-5285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17693590#comment-17693590
]
Kusal Kithul-Godage commented on WW-5285:
-----------------------------------------
Given max file size is enforced via an interceptor, would it make more sense to
enforce this option within the same interceptor as they are strongly related
and will likely be configured together? I feel it would be more consistent. Or
maybe reconsider making the max file size a global option? (WW-5266)
> 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: 20m
> 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)