From ce64f79b632ceed496a0c1672f0444bd51ac2a3a Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 4 Jan 2016 01:01:14 +0100 Subject: [PATCH] mod_http_upload: Fix logging of file size mismatch --- mod_http_upload/src/mod_http_upload.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mod_http_upload/src/mod_http_upload.erl b/mod_http_upload/src/mod_http_upload.erl index 0a6074b..84c4fe4 100644 --- a/mod_http_upload/src/mod_http_upload.erl +++ b/mod_http_upload/src/mod_http_upload.erl @@ -394,7 +394,7 @@ process([_UserDir, _RandDir, _FileName] = Slot, [Path, ?ADDR_TO_STR(IP), Host, ?FORMAT(Error)]), http_response(Host, 500) 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", [Path, ?ADDR_TO_STR(IP), Host, byte_size(Data), Size]), http_response(Host, 413);