TsgcWSPClient_FilesEvents › OnFileSent

OnFileSent Event

Fires when the server confirms that a file has been fully received.

Syntax

property OnFileSent: TsgcWSFileEvent;
// TsgcWSFileEvent = procedure(Connection: TsgcWSConnection; const aMessage: TsgcWSMessageFile) of object

Default Value

Remarks

Raised after the FILE_RECEIVED acknowledgment comes back from the server, at which point the local QoS queue entry and sent stream are released. For qosLevel0 the event is synthesised immediately after the last fragment is written.

Example

procedure TForm1.oProtocolFileSent(Connection: TsgcWSConnection; const aMessage: TsgcWSMessageFile);
begin
  Memo1.Lines.Add('upload ok: ' + aMessage.FileName);
end;

Back to Events