You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@struts.apache.org by "lukaszlenart (via GitHub)" <gi...@apache.org> on 2023/02/26 18:45:21 UTC

[GitHub] [struts] lukaszlenart commented on a diff in pull request #662: [WW-5285] Limits max number of files to upload at once

lukaszlenart commented on code in PR #662:
URL: https://github.com/apache/struts/pull/662#discussion_r1118133308


##########
core/src/main/java/org/apache/struts2/dispatcher/multipart/AbstractMultiPartRequest.java:
##########
@@ -54,6 +54,12 @@ public abstract class AbstractMultiPartRequest implements MultiPartRequest {
     protected long maxSize;
     protected boolean maxSizeProvided;
 
+    /**
+     * Specifies the maximum number of files in one request.
+     */
+    protected long maxFiles;
+    protected boolean maxFilesProvided;

Review Comment:
   I have used the same approach as with `maxSize`, but maybe you are right to use `null` as a _not set_ indicator



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@struts.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org