WatchDirectory home page
WatchDirectory Startseite (Deutsche Version)
Site WatchDirectory (Français)
  Welcome, Guest. Please Login or Register
YaBB - Yet another Bulletin Board
   
  HomeHelpSearchLoginRegister  
 
Page Index Toggle Pages: 1
FTP upload - Dynamic Naming (Read 2765 times)
dakers
YaBB Newbies
*
Offline



Posts: 2
FTP upload - Dynamic Naming
May 12th, 2010 at 9:25am
 
I'm having some issues with the dynamic naming tags for uploading files to an FTP server.
The task should take files from a set up sub folders and upload them to the FTP server.

The reason I need to use dynamic naming is that I want to maintain the directory structure, aside from one folder name.
the source is: X:\Sub1\Sub2\Sub3\Exports\VariableFolderName\filename.txt
the FTP destination is: Sub1/Sub2/Sub3/Imports/VariableFolderName/filename.txt

so... I've set the destination to dynamic and the root folder to Sub3/Imports/{parentdir}/{filename}

However, when the FTP connects, it tries to CWD to the destination and fails.
It then goes to the root directory (Sub1/Sub2/Sub3/Imports/), but doesn't try to create the {parentdir}, it just gets says "Done" and disconnects.

I could go back to the old batch file method, but I figured dynamic naming would work?

Do you have any suggestions about where I'm going wrong?
I can supply the FTP logs if it will help.

(I'd prefer to have a fully dynmic path, instead of setting the root folder so low, but I did that as a sanity check to try and get it working...)

Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: FTP upload - Dynamic Naming
Reply #1 - May 13th, 2010 at 5:59am
 
Hello Darren,

Please make sure you run the current version of WD, I remember older versions had a CWD bug like you describe.

If you already are running the current version, I would love to see the history db of this task.

Please enable "write FTP conversation to history" and "write debug info" (on the "other" settings window).
Let the task handle only one upload
Stop the task
right-click the task (a popup menu shows)
select "Backup selected task" and email (!!!!!) me the ZIP this creates.

important note: this backup contains your FTP settings, including your FTP password. Before creating the zip, you may want to change the task and set a dummy password on it.

Gert
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
dakers
YaBB Newbies
*
Offline



Posts: 2
Re: FTP upload - Dynamic Naming
Reply #2 - May 13th, 2010 at 6:28am
 
Thanks Gert, I've supplied the files as requested.
Regards,
Darren
Back to top
 
 
IP Logged
 
Gert
YaBB Administrator
*****
Offline



Posts: 2225
The Netherlands
Re: FTP upload - Dynamic Naming
Reply #3 - May 14th, 2010 at 7:57am
 
This turns out to be a user interface bug for the upload plugin.

To make this work properly, review your settings and make sure both the options
[X] Use dynamic naming
[X] Create the same directory structure
have a checkmark (are selected). The "Create the same directory structure" setting is disabled, but it must be checked.

If "Create the same..." is NOT checked, do this to check it:
Uncheck
[ ] Use dynamic naming
that will enable "Create the same.." again so you can check it:
[X] Create the same directory structure
Now check "Use dynamic naming" again (this will disable "Create the same..." but will leave it checked).

This will be fixed in the next release.
Back to top
 

Gert Rijs - gert (at) gdpsoftware (dot) com
Blog: http://blog-en.gdpsoftware.com/
End Alzheimer's: http://www.alz.org&&...
WWW WWW GdPSoftware  
IP Logged
 
Page Index Toggle Pages: 1