FTP Upload does not preserve local time

Hi there,

The only issue, which is actually quite big and a real show stopper, is, that the current ftp tasks do not allow or have an option to keep the local file date on the remote server.

Why is that important for us?
1. Our Servers send E-Tags for optimized caching behaviour within the network, proxies and the users clients.
    If the date of files differ accross the involved servers of the webfarm, the e-tags differ to, so basically the caching brakes totally on that site.

2. Some of our functionality (.net) will breake while the servers switch and certain features within the framework ensure propper validation (so malicious manipulation can be reduced or at least detected) while also using file dates for calculation certain check sums and so on...

So is there a way to get that working out of the box or any other straight solution for that?
Are there any other solutions you can suggest for this issue?

Thanks a lot.
With kind regards,

Ives

Hi Ives,

The ability to set the modification date on a file using the FTP protocol requires that both the server and client implement the experimental "MFMT", "MFCT", and "MFF" command extensions for FTP (http://tools.ietf.org/html/draft-somers-ftp-mfxx-04). If your server does support these FTP commands (IIS7.5 doesn't), then you can use the 'FTP Send Command' action to send the MFMT command to set the modified timestamp on a file.

The command will be 'MFMT [filename] [timestamp]', unfortunately I don't have access to a FTP server which supports these commands so I'm not sure what the expected response code is.

> Are there any other solutions you can suggest for this issue?

If you are able to compress the files into a zip archive, upload the archive and then unzip it on the server, the file timestamps should be preserved, though this will require you to remotely decompress the archive on the server.

Regards,
Paul.