JFileupload on LAMP setup (PHP resume sample) stops at 2GB

Upload core product.
Post Reply
gdevarajan
Posts: 1
Joined: Tue Jun 28, 2011 10:34 pm

JFileupload on LAMP setup (PHP resume sample) stops at 2GB

Post by gdevarajan »

Hi,

We're evaluating your applet, to upload large files (3.5GB). The applet continues to upload the chunks (as seen in the applet debug log), and we also see the process_debug.log getting updated as though its processing the chunks, however the file size stops at exactly 2GB (2,149,580,800 bytes to be exact).

We've tested the applet successfully (with excellent results for resume after interrupt, and with varying chunk size), for file sizes < 2GB. The upload is not giving any errors for our 3.5GB file, except for the fact that the file size stops at 2GB. Please help.. ! We would like to purchase the paid version this week, if we get past this issue.

Here's our setup:

Environment:
  • Client: Mac OSX 10.6.7, running Chrome 12.0.742
    Server: 32 bit Ubuntu Linux 10.10, 1.7GB RAM (basically, an Amazon EC2 "small" instance)
Apache Server (inside our virtual host):

Code: Select all

LimitRequestBody 0
Relevant PHP.ini settings:

Code: Select all

max_execution_time = 30
max_input_time = 60
;memory_limit = 128M
post_max_size = 1500M
file_uploads = On
upload_max_filesize = 1450M
max_file_uploads = 25
applet_http_php_resume.js settings:

Code: Select all

document.writeln('<PARAM NAME=CODE VALUE="jfileupload.upload.client.MApplet.class">');
document.writeln('<PARAM NAME=CODEBASE VALUE="./">');
document.writeln('<PARAM NAME=ARCHIVE VALUE="lib/jfileupload.jar,lib/httpimpl.jar,lib/chttpclient.jar,lib/clogging.jar">');
document.writeln('<PARAM NAME=NAME VALUE="fileupload">');
document.writeln('<PARAM NAME="type" VALUE="application/x-java-applet;version=1.4">');
document.writeln('<PARAM NAME="scriptable" VALUE="true">');
document.writeln('<PARAM NAME="url" VALUE="http://localhost/process_debug.php" ');
document.writeln('<PARAM NAME="paramfile" VALUE="uploadfile">');
document.writeln('<PARAM NAME="param1" VALUE="todo">');
document.writeln('<PARAM NAME="value1" VALUE="upload">');
document.writeln('<PARAM NAME="param2" VALUE="errorheader">');
document.writeln('<PARAM NAME="value2" VALUE="custommessage">');
document.writeln('<PARAM NAME="param3" VALUE="relativefilename">');
document.writeln('<PARAM NAME="value3" VALUE="true">');
document.writeln('<PARAM NAME="param4" VALUE="httpmethod">');
document.writeln('<PARAM NAME="value4" VALUE="put">');
document.writeln('<PARAM NAME="resume" VALUE="true">');
document.writeln('<PARAM NAME="folderdepth" VALUE="-1">');
document.writeln('<PARAM NAME="mode" VALUE="http">');
document.writeln('<PARAM NAME="chunksize" VALUE="10485760">');
document.writeln('<PARAM NAME="chunkmode" VALUE="onflyrange">');
document.writeln('<PARAM NAME="retry" VALUE="3">');
process_debug.php settings

Code: Select all

$upload_dir = "/mnt/uploadtest";
$max_size = 15000000;
$createsubfolders = "true";
$keepalive = "false";
$resume = "true";
$debug=true;

User avatar
support
Posts: 1503
Joined: Sun Jan 27, 2008 6:19 pm

Re: JFileupload on LAMP setup (PHP resume sample) stops at 2

Post by support »

Does your file system support 2GB+ file? Also, there could be some limitation in PHP for file writing over 2GB+, make a search in PHP documentation about that, you might need to update PHP version.

Post Reply