File appends instead of resuming
Posted: Thu Oct 28, 2010 8:20 pm
I'm new to jFileDownload, and when I attempt to resume a file download, it goes past 100% and just appends the extra to the end of my existing file. Is there some parameter I'm missing? I'm using an IIS server. Here's my current config:
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/ftpimpl.jar,lib/cnet.jar,lib/clogging.jar,lib/download.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="resume" VALUE="true">');
document.writeln('<PARAM NAME="overwrite" VALUE="false">');
document.writeln('<PARAM NAME="url" VALUE="ftp://dev.mycompany.com">');
document.writeln('<PARAM NAME="item1" VALUE="myfilename">');
document.writeln('<PARAM NAME="username" VALUE="administrator">');
document.writeln('<PARAM NAME="password" VALUE="password">');
document.writeln('<PARAM NAME="param6" VALUE="account">');
document.writeln('<PARAM NAME="value6" VALUE="MYFOLDERPATH">');
document.writeln('<PARAM NAME="folderdepth" VALUE="-1">');
document.writeln('<PARAM NAME="transferui" VALUE="jfileupload.download.ui.DownloadTransferUI">');
document.writeln('<PARAM NAME="resources" VALUE="i18n_bar">');
document.writeln('<PARAM NAME="transferuiresources" VALUE="i18n_pane">');
document.writeln('<PARAM NAME="mode" VALUE="jfileupload.download.ftp.FTPDownloadTransfer">');
EDIT: I'm using the FTP download.
Thanks!
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/ftpimpl.jar,lib/cnet.jar,lib/clogging.jar,lib/download.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="resume" VALUE="true">');
document.writeln('<PARAM NAME="overwrite" VALUE="false">');
document.writeln('<PARAM NAME="url" VALUE="ftp://dev.mycompany.com">');
document.writeln('<PARAM NAME="item1" VALUE="myfilename">');
document.writeln('<PARAM NAME="username" VALUE="administrator">');
document.writeln('<PARAM NAME="password" VALUE="password">');
document.writeln('<PARAM NAME="param6" VALUE="account">');
document.writeln('<PARAM NAME="value6" VALUE="MYFOLDERPATH">');
document.writeln('<PARAM NAME="folderdepth" VALUE="-1">');
document.writeln('<PARAM NAME="transferui" VALUE="jfileupload.download.ui.DownloadTransferUI">');
document.writeln('<PARAM NAME="resources" VALUE="i18n_bar">');
document.writeln('<PARAM NAME="transferuiresources" VALUE="i18n_pane">');
document.writeln('<PARAM NAME="mode" VALUE="jfileupload.download.ftp.FTPDownloadTransfer">');
EDIT: I'm using the FTP download.
Thanks!