From 38abb5877065a5b8bc33cfb6dbe5b465ee4f8b96 Mon Sep 17 00:00:00 2001 From: Daniele Teti Date: Wed, 26 Jun 2024 16:08:11 +0200 Subject: [PATCH] fileupload demo: Removed RawRequest when not needed --- samples/fileupload/FileUploadControllerU.pas | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/samples/fileupload/FileUploadControllerU.pas b/samples/fileupload/FileUploadControllerU.pas index e70a387c..601e75ab 100644 --- a/samples/fileupload/FileUploadControllerU.pas +++ b/samples/fileupload/FileUploadControllerU.pas @@ -99,7 +99,7 @@ var lFName: string; lFile: TFileStream; begin - if Context.Request.RawWebRequest.Files.Count <> 1 then + if Context.Request.Files.Count <> 1 then begin Exit(RedirectResponse('/')); end;