property OnProtocolAccept : TProtocolAcceptEvent
TProtocolAcceptEvent = procedure(
CP : TObject; var Accept : Boolean;
var FName : string) of object;
Defines an event handler that is called as soon as the name of an incoming file is known.
This event handler provides an opportunity for the receiver to reject or rename the incoming file. If an OnProtocolAccept handler is not installed, all files are accepted (subject to the setting of the WriteFailAction property).
CP is the protocol component that is receiving the file. The event handler should set Accept to True to accept the file, False to reject it. FName is the name of the file to be received. The event handler can change the name if, for example, it would overwrite an existing file.
See "AcceptFile processing" in the printed documentation for more information.
See also: OnProtocolNextFile, WriteFailAction