WatchDirectory Forum
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl
watchDirectory forums >> Plugins >> FTP Plugin - executes delete before upload?
http://www.watchdirectory.net/cgi-bin/yabb25/YaBB.pl?num=1409232169

Message started by m.feldspar on Aug 28th, 2014 at 3:22pm

Title: FTP Plugin - executes delete before upload?
Post by m.feldspar on Aug 28th, 2014 at 3:22pm
I am using the ftp plugin to upload files to a customer's ftp site. Client says "...when transferring files to us, tries to delete the file on our side before sending it. I'm sure that they're doing it to make sure that they don't overwrite a file. Can we ask them if that's really necessary..."

When I looked at history i see this:

2014-08-26 14:06:16.025;D;Attempt to connect;FtpConnection.cpp (320);
2014-08-26 14:06:16.026;I;     STATECHANGE: Connecting to server;wodFtpNotify.cpp (53);
2014-08-26 14:06:17.000;I;     STATECHANGE: Sending authentication data;wodFtpNotify.cpp (53);
2014-08-26 14:06:17.001;I;     STATECHANGE: Connected to server - idle;wodFtpNotify.cpp (53);
2014-08-26 14:06:17.002;I;     CONNECTED;wodFtpNotify.cpp (53);
2014-08-26 14:06:17.003;I;Connected;FtpConnection.cpp (323);
2014-08-26 14:06:17.004;D;connect done;FtpConnection.cpp (477);
2014-08-26 14:06:17.005;D;removing file from ftp.;FtpConnection.cpp (483);
2014-08-26 14:06:17.006;I;     STATECHANGE: Removing file or directory;wodFtpNotify.cpp (53);
2014-08-26 14:06:17.007;I;     STATECHANGE: Connected to server - idle;wodFtpNotify.cpp (53);
2014-08-26 14:06:17.008;I;     DONE, Error=30031 (Server returned an error: No such file or folder);wodFtpNotify.cpp (48);
2014-08-26 14:06:17.009;D;before putfile;FtpConnection.cpp (497);
2014-08-26 14:06:17.010;I;     STATECHANGE: Sending data to server;wodFtpNotify.cpp (53);
2014-08-26 14:06:17.011;I;     PROGRESS 0/26714 bytes (0%);wodFtpNotify.cpp (53);
2014-08-26 14:06:17.012;I;     PROGRESS 26714/26714 bytes (100%);wodFtpNotify.cpp (53);
2014-08-26 14:06:17.013;I;     STATECHANGE: Connected to server - idle;wodFtpNotify.cpp (53);
2014-08-26 14:06:17.014;I;     DONE;wodFtpNotify.cpp (53);
2014-08-26 14:06:17.015;D;after putfile;FtpConnection.cpp (499);
2014-08-26 14:06:17.016;D;     after putfile;wdopAutoFtp.cpp (851);
2014-08-26 14:06:17.017;I;     File uploaded as /Incoming/DIP/OBQSingleFile/400000047.ZIP;wdopAutoFtp.cpp (857);


Why this is an issue I have no idea but is there anyway to suppress the attempted delete?

Title: Re: FTP Plugin - executes delete before upload?
Post by Gert on Aug 29th, 2014 at 8:15am
Currently you can not prevent this behavior.

WD needs to work with a lot of different types of FTP servers, we found that deleting the file before uploading the file is the best way to prevent certain issues.

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