[ https://issues.apache.org/jira/browse/FILEUPLOAD-102?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13589405#comment-13589405 ]
Gergely Kontra commented on FILEUPLOAD-102: ------------------------------------------- Cannot this trick fix it? http://stackoverflow.com/questions/7423285/javax-servlet-httpservletrequest-getcontentlength-returns-int-only > [fileupload] FileUpload 2 gig File Size Limitation > -------------------------------------------------- > > Key: FILEUPLOAD-102 > URL: https://issues.apache.org/jira/browse/FILEUPLOAD-102 > Project: Commons FileUpload > Issue Type: Improvement > Affects Versions: 1.1 Final > Environment: Operating System: All > Platform: All > Reporter: Sharmarke Aden > Assignee: Jochen Wiedmann > Priority: Minor > Fix For: 1.2 > > Attachments: > ASF.LICENSE.NOT.GRANTED--Bug38323MultipartStream.java.patch > > > Looking through the FileUpload 1.1 code it looks like there is a limitation on > how big of a file can be received and processed. If you look at the > readBodyData > method of the MultipartStream class you'll notice that an integer is being > used > to keep a tally of the total number of bytes received when processing an > encapsulation. I recommend changing the type of the variable "total" to a long > in the readBodyData and wherever a tally of bytes received is done. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira