Internet Direct (Indy) Version 9.0.2 Beta
TOnStoreFileEvent
Event signalled to allow an FTP server to load a file onto the local file system.

TOnStoreFileEvent = procedure (ASender: TIdFTPServerThread; AFilename: string; AAppend: Boolean; var VStream: TStream) of object;
Description
TOnStoreFileEvent is an event type signalled when an FTP server implementation needs to store a file on the local file system after receiving either the FTP STOR, STOU, or APPE command verb.

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.