mod_http_upload: Fix logging of file size mismatch
This commit is contained in:
parent
ddf70d60df
commit
ce64f79b63
|
@ -394,7 +394,7 @@ process([_UserDir, _RandDir, _FileName] = Slot,
|
||||||
[Path, ?ADDR_TO_STR(IP), Host, ?FORMAT(Error)]),
|
[Path, ?ADDR_TO_STR(IP), Host, ?FORMAT(Error)]),
|
||||||
http_response(Host, 500)
|
http_response(Host, 500)
|
||||||
end;
|
end;
|
||||||
{ok, Size, Path} ->
|
{ok, Size, Path, _FileMode, _DirMode, _GetPrefix, _Thumbnail} ->
|
||||||
?INFO_MSG("Rejecting file ~s from ~s for ~s: Size is ~B, not ~B",
|
?INFO_MSG("Rejecting file ~s from ~s for ~s: Size is ~B, not ~B",
|
||||||
[Path, ?ADDR_TO_STR(IP), Host, byte_size(Data), Size]),
|
[Path, ?ADDR_TO_STR(IP), Host, byte_size(Data), Size]),
|
||||||
http_response(Host, 413);
|
http_response(Host, 413);
|
||||||
|
|
Loading…
Reference in New Issue