TsgcWSPClient_Files › Events › OnFileReceivedError
Fires when an error occurs while receiving a file.
property OnFileReceivedError: TsgcWSFileErrorEvent;
// TsgcWSFileErrorEvent = procedure(Connection: TsgcWSConnection; const aMessage: TsgcWSMessageFile; const Error: String) of object
—
The partial download is discarded and, for qosLevel1/qosLevel2, the server is notified so the upload side gets an OnFileSentError. Common causes are rejection in OnFileReceivedAuthorization, disk-write failures or a size mismatch at completion.
procedure TForm1.oProtocolFileReceivedError(Connection: TsgcWSConnection;
const aMessage: TsgcWSMessageFile; const Error: String);
begin
Memo1.Lines.Add('receive error ' + aMessage.FileId + ': ' + Error);
end;