From 62ea763089850125eb17024a70aeec80db6a48ed Mon Sep 17 00:00:00 2001 From: Holger Weiss Date: Mon, 26 Oct 2015 22:32:12 +0100 Subject: [PATCH] mod_http_upload: Fix string()/binary() type issue --- src/mod_http_upload.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod_http_upload.erl b/src/mod_http_upload.erl index 817f93b6f..35fd6ca34 100644 --- a/src/mod_http_upload.erl +++ b/src/mod_http_upload.erl @@ -888,7 +888,7 @@ convert(Path, #media_info{type = T, width = W, height = H}) -> -spec thumb_el(string(), binary()) -> xmlel(). thumb_el(Path, URI) -> - ContentType = guess_content_type(Path), + ContentType = guess_content_type(list_to_binary(Path)), case identify(Path) of {ok, #media_info{height = H, width = W}} -> #xmlel{name = <<"thumbnail">>,