Destination Folder

Upload core product.
Post Reply
hiker
Posts: 4
Joined: Tue Feb 21, 2012 8:26 am

Destination Folder

Post by hiker »

I've read two previous topics on this and they don't shed much light on my problem.

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
Thanks for your help.

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

Re: Destination Folder

Post by support »

Try to replace:

Code: Select all

document.writeln('<PARAM NAME="account" VALUE="inv/scratch">');
by:

Code: Select all

document.writeln('<PARAM NAME="param8" VALUE="account">');
document.writeln('<PARAM NAME="value8" VALUE="inv/scratch">');

hiker
Posts: 4
Joined: Tue Feb 21, 2012 8:26 am

Re: Destination Folder

Post by hiker »

I tried that and it seemed to make no difference... but then we're testing it in IE and FF and you did not give us a change for the second set of parameters....

thanks!

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

Re: Destination Folder

Post by support »

You could try to enable FTP debug mode to see what's wrong. See FTP verbose mode at:
http://www.jfileupload.com/products/jfi ... oting.html

hiker
Posts: 4
Joined: Tue Feb 21, 2012 8:26 am

Re: Destination Folder

Post by hiker »

the applet does not appear to be attempting to change directdories.

here is the output:

Code: Select all

Select files to upload
--------------------------------------------------
Connecting ...
< 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
220-You are user number 3 of 75 allowed.
220-Local time is now 18:20. Server port: 21.
220-This is a private system - No anonymous login
220 You will be disconnected after 3 minutes of inactivity.
> USER ****
< 331 User xxxx OK. Password required
> PASS *****
< 230-User xxxx has group access to:  450
230 OK. Current directory is /
Uploading : CherokeeMed.(expanded)805.pdf
(46,971 bytes)
Upload started ...> TYPE I
< 200 TYPE is now 8-bit binary
> PORT 98,211,42,159,15,186
< 200 PORT command successful
> STOR CherokeeMed.(expanded)805.pdf
< 150 Connecting to port 4026
< 226-File successfully transferred
226 0.621 seconds (measured here), 73.92 Kbytes per second
Upload completed
--------------------------------------------------

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

Re: Destination Folder

Post by support »

Make you've setup parameters twice for cross-browser support:

Code: Select all

 document.write('param8="account" ');
 document.write('value8="./scratch" ');

Code: Select all

document.writeln('<PARAM NAME="param8" VALUE="account">');
document.writeln('<PARAM NAME="value8" VALUE="./scratch">');

Post Reply