Author Topic: Problem using FileOpener with files greater than 2GB  (Read 7473 times)

kdiamond

  • Customer
  • Jr. Member
  • *
  • Posts: 53
    • View Profile
Problem using FileOpener with files greater than 2GB
« on: May 21, 2012, 02:24:03 PM »
We are experiencing an issue when uploading files of a length greater than ~2GB through our VLPortal application, using the com.creamtec.ajaxswing.support.FileOpener interface.  We have traced it down to a negative "Content-Length" header value.   Below is an example of the request data for file of roughly 3GB.  It seems to be related to a limitation on the value of an "int".  Is there anything that can be done? 

Thank you.

<<<<<< Request from Socket<<<<<<
POST /VLPortal?jSessionId=2j929jfllnwqj HTTP/1.1
Host: xx.xx.xxx.xx:xxxx
User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:12.0) Gecko/20100101 Firefox/12.0
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Language: en-us,en;q=0.5
Accept-Encoding: gzip, deflate
Connection: keep-alive
Referer: http:// xx.xx.xxx.xx:xxxx /VLPortal?jSessionId=2j929jfllnwqj
Cookie: jSessionId=2j929jfllnwqj
Content-Type: multipart/form-data; boundary=---------------------------73761393126308
Content-Length: -1280965319

Dev Team

  • Customer
  • Hero Member
  • *
  • Posts: 593
    • View Profile
Re: Problem using FileOpener with files greater than 2GB
« Reply #1 on: May 21, 2012, 03:28:14 PM »
The limitation seems to come from browser side, at least IE6-IE8 and some versions of Firefox are limited to 2gb:

See:
http://blogs.msdn.com/b/ieinternals/archive/2011/03/10/wininet-internet-explorer-file-download-and-upload-maximum-size-limits.aspx
http://customer.docushare.xerox.com/s.nl/ctype.KB/it.I/id.29448/KB.186/.f

It's strange that Firefox 12 still has this issue, but content-length header is generated by browser during post request, so if it's negative it would be browser limitation. You can try IE9 and Chrome, they should allow upload for files larger then 2gb.

kdiamond

  • Customer
  • Jr. Member
  • *
  • Posts: 53
    • View Profile
Re: Problem using FileOpener with files greater than 2GB
« Reply #2 on: May 24, 2012, 01:54:02 PM »
Thank you for the information.  IE9 is working fine for us.  This incident is now closed.

Thanks!