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;