Internet Direct (Indy)
|
Specifies the event handler for client Put operations.
property OnWriteFile: TAccessFileEvent;
Parameters |
Description |
Sender |
Trivial FTP server generating the event. |
FileName |
File name on the server file system. |
PeerInfo |
Information about the client connection. |
GrantAccess |
Indicates that the file operation is permitted. |
AStream |
Contains data to be written to the local file system. |
FreeStreamOnComplete |
Indicates that the Stream should be freed. |
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.
Internet Direct (Indy) version 10.1.5
Copyright © 1993-2006, Chad Z. Hower (aka Kudzu) and the Indy Pit Crew. All rights reserved. Website http://www.indyproject.org. Post feedback to the Indy Documentation newsgroup. |