Skip to content

Commit

Permalink
mod_http_upload: Fix string()/binary() type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
weiss committed Oct 26, 2015
1 parent 3e7ee6a commit 62ea763
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/mod_http_upload.erl
Original file line number Diff line number Diff line change
Expand Up @@ -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">>,
Expand Down

0 comments on commit 62ea763

Please sign in to comment.