Internet Direct (Indy) Version 9.0.2 Beta
TIdTrivialFTPServer.OnWriteFile
Specifies the event handler for client Put operations.

property OnWriteFile: TAccessFileEvent;
Description
OnWriteFile is a TAccessFileEventevent handler that allows the TrivialFTP server to respond to client PUT requests.

GrantAccess should be updated in the event handler to indicate if the write operation should be allowed by the server. When GrantAccess is True and AStream is not Nil, the event handler should update the local file system to reflect the contents of AStream for the file specified in FileName.

FreeStreamOnComplete indicates that the OnTransferComplete event handler should free the stream specified in AStream.