Maximum size can be uploaded to jbatchupload

Enhanced frontend add-on to queue files.

Maximum size can be uploaded to jbatchupload

Postby truongvu » Thu Jan 19, 2012 9:11 am

Hi,
Give me ask a question about maximum capacity that jbatchupload stand to upload without generating error.
My ISS7 's maximum allowed content length (Bytes) is 3000000000
Thanks
truongvu
 
Posts: 39
Joined: Wed Oct 26, 2011 11:58 am

Re: Maximum size can be uploaded to jbatchupload

Postby support » Wed Jan 25, 2012 7:49 am

For files > 2GB you might need chunksize/chunkmode parameters to split file in chunks while uploading.
Some web server doesn't handle 2GB+ HTTP request. The best way to know is first check your OS is 64 bits and your web server is compiled for 64 bits support. With HTTP PUT upload you can test it. The upload request will be in HTTP PUT instead of HTTP POST multipart. To do so:
<PARAM NAME="param5" VALUE="httpmethod">
<PARAM NAME="value5" VALUE="put">
Then the put_upload method will be used (if you're using our PHP script sample).

Does it help?
User avatar
support
 
Posts: 1501
Joined: Sun Jan 27, 2008 6:19 pm

Re: Maximum size can be uploaded to jbatchupload

Postby dongtq » Wed Feb 01, 2012 3:25 am

Code: Select all
<script type="text/javascript" >
   var _tempfolder='tempAsset20120201115816_256';
</script>
<div style="text-align:center;" id="contentjava" name='fileupload'>

<script type="text/javascript" >

var _info = navigator.userAgent;
var _ns = false;
var _ns6 = false;
var isCanceled=0;
var _ie = (_info.indexOf("MSIE") > 0 && _info.indexOf("Win") > 0 && _info.indexOf("Windows 3.1") < 0);
if (_info.indexOf("Opera") > 0) _ie = false;
var _ns = (navigator.appName.indexOf("Netscape") >= 0 && ((_info.indexOf("Win") > 0 && _info.indexOf("Win16") < 0) || (_info.indexOf("Sun") > 0) || (_info.indexOf("Linux") > 0) || (_info.indexOf("AIX") > 0) || (_info.indexOf("OS/2") > 0) || (_info.indexOf("IRIX") > 0)));
var _ns6 = ((_ns == true) && (_info.indexOf("Mozilla/5") >= 0));
if (_ie == true) {
  document.writeln('<OBJECT id="jfupload" classid="clsid:8AD9C840-044E-11D1-B3E9-00805F499D93" WIDTH="500" HEIGHT="350" NAME="fileupload" codebase="http://java.sun.com/update/1.4.2/jinstall-1_4-windows-i586.cab#Version=1,4,0,0">');
}
else if (_ns == true && _ns6 == false) {
  // BEGIN: Update parameters below for NETSCAPE 3.x and 4.x support.
  document.write('<EMBED ');
  document.write('type="application/x-java-applet;version=1.4" ');
  document.write('CODE="jfileupload.upload.client.JSMApplet.class" ');
  document.write('JAVA_CODEBASE="/" ');
  document.write('ARCHIVE="lib/jfileupload.jar,lib/httpimpl.jar,lib/chttpclient.jar,lib/clogging.jar,lib/batchui.jar,lib/jsapi.jar" ');
  document.write('NAME="fileupload" ');
  document.write('WIDTH="400" ');
  document.write('HEIGHT="400" ');
  document.write('url="http://locahost/doupload.php"'); 
  document.write('paramfile="uploadfile" ');
  document.write('param1="todo" ');
  document.write('value1="upload" ');
 
  document.write('overwritewarn="true" ');
  document.write('overwrite="true" ');
  document.write('param8="overwritewarnforwardfile" ');
  document.write('value8="all" ');
  document.write('param5="httpmethod" ');
  document.write('value5="PUT" ');
 
  document.write('transferui="jfileupload.transfer.client.edesign.BatchTransferUI" ');
  document.write('transferuiresources="i18n_pane" ');
  document.write('resources="i18n_bar" ');
  document.write('resetprogressbar="true" ');
  document.write('mode="http" ');
  document.write('scriptable=true ');
  document.writeln('pluginspage="http://java.sun.com/products/plugin/index.html#download"><NOEMBED>');
  // END
}
else {
  document.writeln('<APPLET CODE="jfileupload.upload.client.JSMApplet.class" JAVA_CODEBASE="/" ARCHIVE="lib/jfileupload.jar,lib/httpimpl.jar,lib/chttpclient.jar,lib/clogging.jar,lib/jsapi.jar" WIDTH="500" HEIGHT="350" NAME="fileupload" MAYSCRIPT>');
}
// BEGIN: Update parameters below for INTERNET EXPLORER, FIREFOX, SAFARI, OPERA, MOZILLA, NETSCAPE 6+ support.
document.writeln('<PARAM NAME=CODE VALUE="jfileupload.upload.client.JSMApplet.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,lib/batchui.jar,lib/jsapi.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/doupload.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="whitelist" VALUE="*.pdf,*.jpg,*.jpeg,*.tiff,*.txt,*.xml">');
document.writeln('<PARAM NAME="blacklist" VALUE="*.">');
document.writeln('<PARAM NAME="overwrite" VALUE="false">');
document.writeln('<PARAM NAME="scriptable" VALUE="true">');
document.writeln('<PARAM NAME="maxfiles" VALUE="-1">');

document.writeln('<PARAM NAME="transferui" VALUE="jfileupload.transfer.client.edesign.BatchTransferUI">');
document.writeln('<PARAM NAME="transferuiresources" VALUE="i18n_pane">');
document.writeln('<PARAM NAME="resources" VALUE="i18n_bar">');
document.writeln('<PARAM NAME="resetprogressbar" VALUE="true">');
document.writeln('<PARAM NAME="mode" VALUE="http">');
document.writeln('<PARAM NAME="initcallbackonstart" VALUE="true">');
document.writeln('<PARAM NAME="encoding" VALUE="utf8">');
document.writeln('<PARAM NAME="folderdepth" VALUE="-1">');
document.writeln('<PARAM NAME="param2" VALUE="emptydirectory">');
document.writeln('<PARAM NAME="value2" VALUE="true">');
document.writeln('<PARAM NAME="param3" VALUE="relativefilename">');
document.writeln('<PARAM NAME="value3" VALUE="true">');

document.writeln('<PARAM NAME="overwritewarn" VALUE="true">');
document.writeln('<PARAM NAME="overwrite" VALUE="true">');
document.writeln('<PARAM NAME="param8" VALUE="overwritewarnforwardfile">');
document.writeln('<PARAM NAME="value8" VALUE="all">');
document.writeln('<PARAM NAME="param4" VALUE="tempfolder">');
document.writeln('<PARAM NAME="value4" VALUE="'+ _tempfolder +'"');
document.writeln('<PARAM NAME="param5" VALUE="httpmethod">');
document.writeln('<PARAM NAME="value5" VALUE="put">');
//document.writeln('<PARAM NAME="chunksize" VALUE="20000000">');
//document.writeln('<PARAM NAME="chunkmode" VALUE="onflyrange">');
// END
if (_ie == true) {
  document.writeln('</OBJECT>');
}
else if (_ns == true && _ns6 == false) {
  document.writeln('</NOEMBED></EMBED>');
}
else {
  document.writeln('</APPLET>');
}
</script>


put_upload method can not call
dongtq
 
Posts: 2
Joined: Wed Feb 01, 2012 3:19 am


Return to JBatchUpload




Sitemap | Privacy Statement | Java and all Java-based marks are trademarks or registered trademarks of Sun Microsystems, Inc.
in the U.S. and other countries. All other company and/or product names are the property of their respective owners.