zsigmondrab/liferay-portal — pull request #35 by vilmospapp (2013-04-29 08:39:56+00:00)
Title: [TECHNICAL SUPPORT] LPS-34764 Fixed _totalSize setting for large file sizes

Hi Zsigmond,

This fix handles extreme large file sizes where file size doesn't fit in the Integer.MAX_VALUE. Hence the API cannot give it back as it will overflow and the request.getContentLenght() will return -1 instead of the size of the file. The only solution I found is to retreive the size from the header "content-length" and store it as long.

Regards,
Vilmos