The password we are using logs into a folder named "inv" on the server, thus making it the FTP root.
I want uploaded files to go into a sub-directory, "inv/scratch", but it seems no matter how I set it, the files always go to "inv" and not into "inv/scratch"
what am i doing wrong? Here is the code I am using for the parameters:
Code: Select all
// 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.MApplet.class" ');
document.write('JAVA_CODEBASE="./" ');
document.write('ARCHIVE="lib/jfileupload.jar,lib/ftpimpl.jar,lib/cnet.jar,lib/clogging.jar" ');
document.write('NAME="fileupload" ');
document.write('WIDTH="450" ');
document.write('HEIGHT="250" ');
document.write('url="ftp://aviationlawweek.com" ');
document.write('param1="pasv" ');
document.write('value1=true ');
document.write('authentication="auto"');
document.write('mode="ftp" ');
document.write('resources="i18n" ');
document.write('hidebar=true');
document.write('scriptable=true ');
document.write('whitelist="*.pdf,*.txt"');
document.write('account="inv/scratch"');
document.writeln('pluginspage="http://java.sun.com/products/plugin/index.html#download"><NOEMBED>');
// END
}
else {
document.write('<APPLET CODE="jfileupload.upload.client.MApplet.class" JAVA_CODEBASE="./" ARCHIVE="lib/jfileupload.jar,lib/ftpimpl.jar,lib/cnet.jar,lib/clogging.jar" WIDTH="250" HEIGHT="250" NAME="fileupload">');
}
// BEGIN: Update parameters below for INTERNET EXPLORER, FIREFOX, SAFARI, OPERA, MOZILLA, NETSCAPE 6+ support.
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">');
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="ftp://aviationlawweek.com">');
document.writeln('<PARAM NAME="pasv" VALUE="true">');
document.writeln('<PARAM NAME="mode" VALUE="ftp">');
document.writeln('<PARAM NAME="authentication" VALUE="auto">');
document.writeln('<PARAM NAME="resources" VALUE="i18n">');
document.writeln('<PARAM NAME="hidebar" VALUE="true">');
document.writeln('<PARAM NAME="width" VALUE="450">');
document.writeln('<PARAM NAME="height" VALUE="250">');
document.writeln('<PARAM NAME="whitelist" VALUE="*.pdf,*.txt">');
document.writeln('<PARAM NAME="account" VALUE="inv/scratch">');
// END