Page 1 of 1

creating folders

Posted: Sun Jan 27, 2008 9:42 pm
by import
Hi,
Currently I'm using the unregistered version to see if I can make this work....

Problem is as follows:
I have used jupload with the JDiskExplorer frontend, and when I upload a folder, the folder gets created under the account specified.

However, if I use JBatchUpload, I get a cannot change directory error. I can't work out why...

here's the code i'm using ( i tried countless variations too) any help much appreciated...

<param name="hidebar" value="false">
<param name="url" value="ftp://xxx.xxx.xxx.xxx">
<param name="param1" value="username">
<param name="value1" value="xxx">
<param name="param2" value="password">
<param name="value2" value="xxx">
<param name="param3" value="pasv">

<param name="value3" value="true">
<param name="param4" value="account">
<param name="value4" value="1190712456_46">
<param name="param5" value="relativefilename">
<param name="value5" value="true">

<param name="folderdepth" value="-1">

<param name="forward" value="a url">
<param name="transferui" value="jfileupload.transfer.client.batchdesign.ETransferUI">
<param name="transferuiresources" value="i18n_pane">
<param name="resources" value="i18n_bar">
<param name="mode" value="ftp">

Re: creating folders

Posted: Sun Jan 27, 2008 9:43 pm
by import
Double check the "account" parameter. You might have it starting (or ending) with "/" in JDiskExplorer. Also make sure you're using the same FTP account with same read/write permissions.

Re: creating folders

Posted: Sun Jan 27, 2008 9:44 pm
by import
Hi,
thanks for the reply.
I am however using the same account parameters and the same ftp account...

I even tried to use the same parameters that worked for JDiskExplorer with the BatchUpload, (except transferui of course ), and it still told me that it cannot change directories .

Any other hints greatly appreciated

Olly

Re: creating folders

Posted: Sun Jan 27, 2008 9:45 pm
by import
Could you provide a testing URL with the JBatchUpload applet to support(at)jfileupload(dot)com ?

Re: creating folders

Posted: Sun Jan 27, 2008 9:45 pm
by import
Hi,
I've sent you an email re testing version

thanks

Re: creating folders

Posted: Sun Jan 27, 2008 9:46 pm
by import
Yeap, problem reproduced. Minor "account" parameter different behavior. Two solutions:

- Solution 1: Absolute path
<PARAM NAME="param4" VALUE="account">
<PARAM NAME="value4" VALUE="/rootfolder/folder1">

- Solution 2: accountpwd parameter and account starting with /
<PARAM NAME="param4" VALUE="account">
<PARAM NAME="value4" VALUE="/folder1">
<PARAM NAME="param8" VALUE="accountpwd">
<PARAM NAME="value8" VALUE="true">

Re: creating folders

Posted: Sun Jan 27, 2008 9:47 pm
by import
Excellent. That works. (solution2 anyway)

(for someone who might be as stupid as I am : As my ftp account doesn't have any other password(s) for subfolders, I wondered what the accountpwd should be. Turns out it just needs to be "true" .... DOH ! )

Re: creating folders

Posted: Sun Jan 27, 2008 9:47 pm
by import
"accountpwd" allows issuing a PWD FTP command before trying to change directory to the one setup in "account" parameter. PWD just return the current directory.