mod_http_upload: Rename variable for clarity
This commit is contained in:
parent
ce64f79b63
commit
99d89ce59d
|
@ -757,14 +757,14 @@ iq_disco_info(Lang, Name) ->
|
||||||
binary(), slot(), boolean())
|
binary(), slot(), boolean())
|
||||||
-> ok | {ok, [{binary(), binary()}], binary()} | {error, term()}.
|
-> ok | {ok, [{binary(), binary()}], binary()} | {error, term()}.
|
||||||
|
|
||||||
store_file(Path, Data, FileMode, DirMode, GetPrefix, LocalPath, Thumbnail) ->
|
store_file(Path, Data, FileMode, DirMode, GetPrefix, Slot, Thumbnail) ->
|
||||||
case do_store_file(Path, Data, FileMode, DirMode) of
|
case do_store_file(Path, Data, FileMode, DirMode) of
|
||||||
ok when Thumbnail ->
|
ok when Thumbnail ->
|
||||||
case identify(Path) of
|
case identify(Path) of
|
||||||
{ok, MediaInfo} ->
|
{ok, MediaInfo} ->
|
||||||
case convert(Path, MediaInfo) of
|
case convert(Path, MediaInfo) of
|
||||||
{ok, OutPath} ->
|
{ok, OutPath} ->
|
||||||
[UserDir, RandDir | _] = LocalPath,
|
[UserDir, RandDir | _] = Slot,
|
||||||
FileName = filename:basename(OutPath),
|
FileName = filename:basename(OutPath),
|
||||||
URL = str:join([GetPrefix, UserDir,
|
URL = str:join([GetPrefix, UserDir,
|
||||||
RandDir, FileName], <<$/>>),
|
RandDir, FileName], <<$/>>),
|
||||||
|
|
Loading…
Reference in New Issue