[
https://issues.apache.org/jira/browse/FILEUPLOAD-195?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13056414#comment-13056414
]
jagub zhang commented on FILEUPLOAD-195:
----------------------------------------
I think it is a very old problem about j2ee.
commons-upload get total size of upload using ServletRequest#getContentLength()
Interface ServletRequest#getContentLength() return a int value.
on j2ee javadoc:
an integer containing the length of the request body or -1 if the length is
not known
The max value of int is 2147483647, it is less then 2gb(2147483648).
then it return -1
> Error reading the file size larger than 2 gb
> --------------------------------------------
>
> Key: FILEUPLOAD-195
> URL: https://issues.apache.org/jira/browse/FILEUPLOAD-195
> Project: Commons FileUpload
> Issue Type: Bug
> Affects Versions: 1.2.1, 1.2.2
> Reporter: Juliano Alves
> Priority: Minor
>
> Error reading bytes from the file sent via servlet when it has a size larger
> than 2GB, it puts the total file size is negative.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira