Reciving files with TIdFTPServer

Giganews Newsgroups
Subject: Reciving files with TIdFTPServer
Posted by:  Luca Scarpellino (lucascarpelli…@email.it)
Date: Wed, 4 Oct 2006

Hallo,

I need to know how i can know when i have finished to recive a file from a
client on my ftp server.
When i recive a file i use following procedure on TIdFtpServer onStoreFile
event:

if not Aappend then
  xStream := TFileStream.Create(FilePath, fmCreate)
else
  xStream := TFileStream.Create(FilePath, fmOpenWrite);

I am interessed to trigger a event when i have finished to recive the file
(for example something like ShowMessage('File Recived')) but i dont know how
understand when i have finished to recive the file.

I am using Delphi 2006 and Indy10 components.
Thx a lot for any answare.

Replies