Internet Direct (Indy) Version 9.0.2 Beta
|
property OnRetrieveFile: TOnRetrieveFileEvent;
OnRetrieveFile allows the server to load the contents of the file specified in AFilename into the stream specified by AStream. OnRetrieveFile must create a stream to use for transferring the contents of the file, and assign the reference to AStream. OnRetrieveFile may also use the default value of AStream (Nil) to indicate that the specified file could not be found, or is not available for transfer to the client connection.
When the stream has been assigned in OnRetrieveFile, the restart position indicated in TIdFTPSErverThread.RESTPos is located in AStream prior to transfer of data on the data channel.
An FTP server implementation must assign a procedure to the event handler to allow responding to the event notification.