diff --git a/src/mod_http_upload.erl b/src/mod_http_upload.erl index 377e625cd..846071a2a 100644 --- a/src/mod_http_upload.erl +++ b/src/mod_http_upload.erl @@ -688,7 +688,7 @@ make_query_string(Slot, Size, #state{external_secret = Key}) when Key /= <<>> -> UrlPath = str:join(Slot, <<$/>>), SizeStr = integer_to_binary(Size), Data = <>, - HMAC = str:to_hexlist(crypto:hmac(sha256, Data, Key)), + HMAC = str:to_hexlist(crypto:hmac(sha256, Key, Data)), <<"?v=", HMAC/binary>>; make_query_string(_Slot, _Size, _State) -> <<>>.