diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-10-26 22:32:12 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-10-26 22:32:12 +0100 |
commit | 62ea763089850125eb17024a70aeec80db6a48ed (patch) | |
tree | 01ee7a457f8b9c04bda9a6eaa2752a36343afaa3 | |
parent | mod_http_upload: Add/fix function specifications (diff) |
mod_http_upload: Fix string()/binary() type issue
-rw-r--r-- | src/mod_http_upload.erl | 2 |
1 files changed, 1 insertions, 1 deletions
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">>, |