Indy 9 | Content | Index | Reference

TOnStoreFileEvent
Unit: IdFTPServer
Event signalled to allow an FTP server to load a file onto the local file system.

    TOnStoreFileEvent = procedure (ASender: TIdFTPServerThread; const AFileName: string; AAppend: Boolean; var VStream: TStream) of object;

Unit
IdFTPServer
Parameters
AAppend
Indicates data should be appended to an existing file.
AFilename
File to be loaded onto the local file system.
ASender
Client thread for the event notification.
AStream
Data read by the event handler.
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.

Created with Doc-O-Matic 2 donated to Project JEDI. Commercial license available from the Doc-O-Matic site.