in reply to How to make sure a file send by ftp get to the server complete???

I would never do automated transfers of files via FTP without following this "best practice":

Transfer the file to a temporary name. After the sending side has been told that the file was sent successfully, the sending side uses FTP to rename the remote file from the temporary name to the final name.

- tye        

  • Comment on Re: How to make sure a file send by ftp get to the server complete??? (rename after)

Replies are listed 'Best First'.
Re^2: How to make sure a file send by ftp get to the server complete??? (rename after)
by nbartusi (Scribe) on Apr 17, 2008 at 13:27 UTC
    By doing this you also prevent any scheduled processing on the other side from processing a partial file, ie if the transfer speed was unusually slow or the file size was unusually big.