Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
2.5k views
in .NET FTP by (120 points)
How would I delete the local file that was successfully uploaded to the remote ftp server? I believe this would be done with the EventHandler TransferComplete, but, i'm not quite sure how to implement it.

1 Answer

0 votes
by (162k points)
Are you uploading synchronously? If so, just delete the local file when the upload method has completed.

Or FTPConnection has Uploaded & Downloaded events - simply implement these events, check that the transfer was not cancelled (from the event args), and delete the file.

TransferComplete is obsolete.

Categories

...