mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-24 16:23:40 +01:00
mod_http_upload: Add/fix function specifications
This commit is contained in:
parent
b5a09f8b15
commit
3e7ee6af6d
@ -719,6 +719,12 @@ iq_disco_info(Lang, Name) ->
|
|||||||
|
|
||||||
%% HTTP request handling.
|
%% HTTP request handling.
|
||||||
|
|
||||||
|
-spec store_file(file:filename_all(), binary(),
|
||||||
|
integer() | undefined,
|
||||||
|
integer() | undefined,
|
||||||
|
binary(), binary(), boolean())
|
||||||
|
-> ok | {ok, [{binary(), binary()}], binary()} | {error, term()}.
|
||||||
|
|
||||||
store_file(Path, Data, FileMode, DirMode, GetPrefix, LocalPath, Thumbnail) ->
|
store_file(Path, Data, FileMode, DirMode, GetPrefix, LocalPath, 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 ->
|
||||||
@ -747,7 +753,9 @@ store_file(Path, Data, FileMode, DirMode, GetPrefix, LocalPath, Thumbnail) ->
|
|||||||
Err
|
Err
|
||||||
end.
|
end.
|
||||||
|
|
||||||
-spec do_store_file(file:filename_all(), binary(), integer(), integer())
|
-spec do_store_file(file:filename_all(), binary(),
|
||||||
|
integer() | undefined,
|
||||||
|
integer() | undefined)
|
||||||
-> ok | {error, term()}.
|
-> ok | {error, term()}.
|
||||||
|
|
||||||
do_store_file(Path, Data, FileMode, DirMode) ->
|
do_store_file(Path, Data, FileMode, DirMode) ->
|
||||||
|
Loading…
Reference in New Issue
Block a user