TsgcWSPServer_Files › Events › OnFileSentError
Fired when an error occurs while sending a file to a client.
property OnFileSentError: TsgcWSFileErrorEvent;
// TsgcWSFileErrorEvent = procedure(Connection: TsgcWSConnection; const aMessage: TsgcWSMessageFile; const Error: String) of object
—
Fires when the sender-side flow aborts: receiver-reported error, cancelled fragment request, local I/O failure, or the connection dropped while an qosLevel2 transfer was in progress. The QoS queue and sent-stream are cleaned up before the event is raised.
procedure TForm1.oFilesFileSentError(Connection: TsgcWSConnection;
const aMessage: TsgcWSMessageFile; const Error: String);
begin
Memo1.Lines.Add(Format('send error: %s (%s)', [aMessage.FileName, Error]));
end;