Skip to content

Commit

Permalink
fileupload demo: Removed RawRequest when not needed
Browse files Browse the repository at this point in the history
  • Loading branch information
danieleteti committed Jun 26, 2024
1 parent 089b2f2 commit 38abb58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion samples/fileupload/FileUploadControllerU.pas
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ function TFileUploadController.SaveFile: IMVCResponse;
lFName: string;
lFile: TFileStream;
begin
if Context.Request.RawWebRequest.Files.Count <> 1 then
if Context.Request.Files.Count <> 1 then
begin
Exit(RedirectResponse('/'));
end;
Expand Down

0 comments on commit 38abb58

Please sign in to comment.