Indy 9
|
TOnStoreFileEvent = procedure (ASender: TIdFTPServerThread; const AFileName: string; AAppend: Boolean; var VStream: TStream) of object;
TOnStoreFileEvent is the event type signalled to the TIdFTPServer.OnStoreFile event handler, and allows the server to perform processing required to load the data for the file specified in AFilename using a stream constructed by the event handler. The event ahdnaler is responsible for determining if the authenticated client can store files on the local file systyem, and creating the stream used to load the contents of the file.
The FTP server implementation must assign a procedure to the event handler to allow responding to the event notification.