./ct_report/coverage/service_admin_extra_upload.COVER.html

1 -module(service_admin_extra_upload).
2
3 -include("ejabberd_commands.hrl").
4
5 -export([commands/0]).
6
7 -ignore_xref([commands/0, get_urls/5]).
8
9 -spec commands() -> [ejabberd_commands:cmd()].
10 166 commands() -> [
11 #ejabberd_commands{
12 name = http_upload,
13 tags = [http, upload],
14 desc = "Generate upload/download URLs for the file",
15 longdesc = "Returns upload/download URLs generated by mod_http_upload. Example:\n"
16 " mongooseimctl http_upload localhost tmp.txt 5 '' 60",
17 module = mod_http_upload_api,
18 function = get_urls_mongooseimctl,
19 args = [{domain, binary}, {file_name, binary}, {size, integer},
20 {content_type, binary}, {timeout, integer}],
21 result = {res, restuple}
22 }
23 ].
Line Hits Source