Internet Direct (Indy) Version 9.0.2 Beta
TIdFTPServer.OnStoreFile
Allows the server to store a file on the server file system.

property OnStoreFile: TOnStoreFileEvent;
Description
OnStoreFile is a TOnStoreFileEvent property that represents the event handler signalled when the server needs to store the contents of a file retrieved from the client connection on the server file system. OnStoreFile is triggered when the command event handlers for the FTP STOR, STOU, or APPE command verbs are executed.

OnStoreFile allows the server to perform the platform-specific API calls needed to load the data for the file specified in AFilename using the stream AStream constructed by the event handler. OnStoreFile responsible for determining if the authenticated client can store files on the local file system, and creating the stream used to load the contents of the file. AAppend indicates that data can be appended to the end of an existing file on the server file system.

An FTP server implementation must assign a procedure to the event handler to allow responding to the event notification.