diff options
author | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-10-26 22:30:58 +0100 |
---|---|---|
committer | Holger Weiss <holger@zedat.fu-berlin.de> | 2015-10-26 22:30:58 +0100 |
commit | 3e7ee6af6d21d70e1d03ad84ba4f3f6f4ed8df95 (patch) | |
tree | f5556761ee9a6388e23b115cbcfad06c6fa1d778 | |
parent | mod_http_upload: Strip newline from command output (diff) |
mod_http_upload: Add/fix function specifications
-rw-r--r-- | src/mod_http_upload.erl | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/mod_http_upload.erl b/src/mod_http_upload.erl index 88ca53f7..817f93b6 100644 --- a/src/mod_http_upload.erl +++ b/src/mod_http_upload.erl @@ -719,6 +719,12 @@ iq_disco_info(Lang, Name) -> %% 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) -> case do_store_file(Path, Data, FileMode, DirMode) of ok when Thumbnail -> @@ -747,7 +753,9 @@ store_file(Path, Data, FileMode, DirMode, GetPrefix, LocalPath, Thumbnail) -> Err 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()}. do_store_file(Path, Data, FileMode, DirMode) -> |