comparison mod_http_upload/mod_http_upload.lua @ 2231:131075a3bf0d

mod_http_upload: Add disco identity
author Matthew Wild <mwild1@gmail.com>
date Mon, 04 Jul 2016 10:38:56 +0100
parents e654d6e1fb50
children f1923bf329a3
comparison
equal deleted inserted replaced
2230:42eafc1c61d9 2231:131075a3bf0d
29 module:depends("disco"); 29 module:depends("disco");
30 30
31 -- namespace 31 -- namespace
32 local xmlns_http_upload = "urn:xmpp:http:upload"; 32 local xmlns_http_upload = "urn:xmpp:http:upload";
33 33
34 module:add_identity("store", "file", module:get_option_string("name", "HTTP File Upload"))
34 module:add_feature(xmlns_http_upload); 35 module:add_feature(xmlns_http_upload);
35 36
36 module:add_extension(dataform { 37 module:add_extension(dataform {
37 { name = "FORM_TYPE", type = "hidden", value = xmlns_http_upload }, 38 { name = "FORM_TYPE", type = "hidden", value = xmlns_http_upload },
38 { name = "max-file-size", type = "text-single" }, 39 { name = "max-file-size", type = "text-single" },