I am evaluating this applet for a client and in the process of testing the chunked upload function (for >2b files) I find that the uploaded file on the server is not being appended with the chunks although all chunks show up as having being uploaded successfully by the applet. The applet settings I am using are :
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/test/ftp/PHPScript/process.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="folderdepth" VALUE="-1">');
document.writeln('<PARAM NAME="mode" VALUE="http">');
document.writeln('<PARAM NAME="chunksize" VALUE="400000096">');
document.writeln('<PARAM NAME="chunkmode" VALUE="onflyrange">');
The java console log for a test file sized : 700 MB is as below:
[INFO] MApplet - JFileUpload 2.8 Build FINAL.001
[INFO] F - Auto-detect proxy settings (ps): DIRECT
[INFO] F - Auto-detect proxy settings : host = null
[INFO] F - Auto-detect proxy settings : port = -1
[INFO] HTTPUploadTransfer - Split triggered
[INFO] HTTPUploadTransfer - Split started 1/2
[INFO] HTTPUploadTransfer - Split completed 1/2
[INFO] HTTPUploadTransfer - Upload (POST) started : D:\Downloads\htdocs.part4.rar
[INFO] HTTPUploadTransfer - Upload Status code = 200
[INFO] HTTPUploadTransfer - Upload completed
[INFO] HTTPUploadTransfer - Split started 2/2
[INFO] HTTPUploadTransfer - Split completed 2/2
[INFO] HTTPUploadTransfer - Upload (POST) started : D:\Downloads\htdocs.part4.rar
[INFO] HTTPUploadTransfer - Upload Status code = 200
[INFO] HTTPUploadTransfer - Upload completed
The file size when checked after the upload is completed on the server is just : 318 MB
Please advice...
The process.php file is the stock php file as provided on this site.
Problem with chunked upload using process.phpRe: Problem with chunked upload using process.phpAre you sure your PHP configuration allows 400MB upload?
Try to reduce chunksize or check the following properties in your php.ini file: - file_uploads - upload_max_filesize - post_max_size - max_execution_time - max_input_time - memory_limit |