fileupload demo: Removed RawRequest when not needed

This commit is contained in:
Daniele Teti 2024-06-26 16:08:11 +02:00
parent 089b2f29af
commit 38abb58770

View File

@ -99,7 +99,7 @@ var
lFName: string; lFName: string;
lFile: TFileStream; lFile: TFileStream;
begin begin
if Context.Request.RawWebRequest.Files.Count <> 1 then if Context.Request.Files.Count <> 1 then
begin begin
Exit(RedirectResponse('/')); Exit(RedirectResponse('/'));
end; end;