From what I gather is that MagFTP is the Client Side. For client side I will 
refer your logic, Thanks. My requirement is for the Server Side. I can also 
pass the command from Client side to the Server to do the rename but I thought 
Server doing the Rename would be faster and would also help my flow of logic. 
So can I get actual Filesize on the server side ?
RegardsAllan

      From: Angus Robertson - Magenta Systems Ltd <an...@magsys.co.uk>
 To: twsocket@lists.elists.org 
 Sent: Thursday, 15 June 2017 4:17 PM
 Subject: Re: [twsocket] Aborting PUT
   
> How does Server understand that FtpClient Aborted the PUT. In 
> 'OnStorSessionClosed' 'Error=0'.
> 
> My intention is that at PUT of a file I rename the HostFilename 
> to Filename$$ and when completely received at Server side Server 
> will rename it back to 'Filename' by removing the ending $$.
> Sorry for all the trouble I am giving you.

Suggest you look at the source code for TMagFtp at: 

https://www.magsys.co.uk/delphi/magxfer.asp

which does all this already.  Generally, you check the correct sized
file has arrived, and perhaps run a CRC or MD5 check on it, to check
it's not corrupted before renaming it to the final name, if the server
supports such commands.  

Angus

-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be


   
-- 
To unsubscribe or change your settings for TWSocket mailing list
please goto http://lists.elists.org/cgi-bin/mailman/listinfo/twsocket
Visit our website at http://www.overbyte.be

Reply via email to