05-30-2023, 03:47 PM
How can I have a WebApplication.SendFile(..) response into the TIWCallbackProc3 = reference to procedure (aParams: TStrings; out aResult: string; out aHandled: Boolean) callback?
I test for the request.
In some cases, I only have to assign aResult.
But in others, I have to run a download attachment.
The IW command is WebApplication.SendFile() / SendStream().
I assigned aHandled := true but I get "Uninitialized response" and no download starts.
So I added WebApplication.Response.Code := 200 so the error messages do not appears anymore, but no download starts.
Thank you.
I test for the request.
In some cases, I only have to assign aResult.
But in others, I have to run a download attachment.
The IW command is WebApplication.SendFile() / SendStream().
I assigned aHandled := true but I get "Uninitialized response" and no download starts.
So I added WebApplication.Response.Code := 200 so the error messages do not appears anymore, but no download starts.
Thank you.