mirror of
https://github.com/danieleteti/delphimvcframework.git
synced 2024-11-15 15:55:54 +01:00
fileupload demo: Removed RawRequest when not needed
This commit is contained in:
parent
089b2f29af
commit
38abb58770
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user