Opened 14 years ago

Closed 5 years ago

#841 closed task (fixed)

Investigate BASE support for uploading files >2GB

Reported by: Nicklas Nordborg Owned by: Nicklas Nordborg
Priority: major Milestone: BASE 3.9
Component: web Version:
Keywords: Cc:

Description

A question about file upload of files > 2GB was recently asked on the mailing list: http://www.mail-archive.com/basedb-devel@lists.sourceforge.net/msg00193.html

It appears that most browsers doesn't support files > 2GB, but I think BASE may also have problems with it. There are no such limitations in the HTTP protocol. The potential problems with BASE are:

  • Reading content-size as an int. May be better to parse the header with Long.parseLong
  • Content-size is an optional header. BASE should support it with a modified progress reporter: Uploaded 15MB of unknown

Change History (5)

comment:1 Changed 14 years ago by Johan Enell

Milestone: BASE 2.x+

comment:2 Changed 6 years ago by Nicklas Nordborg

Milestone: BASE Future ReleaseBASE 3.9
Owner: changed from everyone to Nicklas Nordborg
Status: newassigned

See #2007. It might be worth checking this again.

comment:3 Changed 6 years ago by Nicklas Nordborg

There are no problems with Firefox any longer. I have successfully tested with a 10GB file.

IE (and Edge) is limited to 4GB. See https://blogs.msdn.microsoft.com/ieinternals/2011/03/10/file-upload-and-download-limits/. This article mentions that larger files should be uploaded in chunks with the HTML5 FileAPI. Don't know if this is something that is worth doing right now. I guess it depends on how much work is required.

comment:4 Changed 6 years ago by Nicklas Nordborg

(In [7160]) References #841: Investigate BASE support for uploading files >2GB

Using the ServletRequest.getContentLengthLong() method for getting the file size seems to solve the problem with Firefox.

comment:5 Changed 5 years ago by Nicklas Nordborg

Resolution: fixed
Status: assignedclosed
Note: See TracTickets for help on using tickets.