diff --git a/mod_http_upload/src/mod_http_upload.erl b/mod_http_upload/src/mod_http_upload.erl index c29bf53..41b8841 100644 --- a/mod_http_upload/src/mod_http_upload.erl +++ b/mod_http_upload/src/mod_http_upload.erl @@ -890,7 +890,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">>,