WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Plugins >> FTP upload - Dynamic Naming
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1273649150

Message started by dakers on May 12th, 2010 at 9:25am

Title: FTP upload - Dynamic Naming
Post by dakers on 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...)


Title: Re: FTP upload - Dynamic Naming
Post by Gert on 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

Title: Re: FTP upload - Dynamic Naming
Post by dakers on May 13th, 2010 at 6:28am
Thanks Gert, I've supplied the files as requested.
Regards,
Darren

Title: Re: FTP upload - Dynamic Naming
Post by Gert on 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.

WatchDirectory Forum » Powered by YaBB 2.5.2!
YaBB Forum Software © 2000-2017. All Rights Reserved.