codecracker2014 commented on a change in pull request #22: Adding capability to take max upload size per request.Fileupload 1 3 1 URL: https://github.com/apache/commons-fileupload/pull/22#discussion_r326854899
########## File path: src/main/java/org/apache/commons/fileupload/FileUploadBase.java ########## @@ -205,6 +205,18 @@ public static boolean isMultipartContent(HttpServletRequest req) { public long getSizeMax() { return sizeMax; } + + /** + * This method enables subclassed to set + allowed size per request if needed. + * @param ctx + * @return + */ Review comment: ctx can be used to get request attributes which can be used in calculating allowed max size for particular request. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org With regards, Apache Git Services