comparison mod_http_upload/mod_http_upload.lua @ 2287:e1a8c2324937

mod_http_upload: Add a comment
author Kim Alvefur <zash@zash.se>
date Tue, 23 Aug 2016 02:09:32 +0200
parents 0a3f526779a1
children 827f01cbf6ba
comparison
equal deleted inserted replaced
2286:0a3f526779a1 2287:e1a8c2324937
36 module:depends("disco"); 36 module:depends("disco");
37 37
38 -- namespace 38 -- namespace
39 local xmlns_http_upload = "urn:xmpp:http:upload"; 39 local xmlns_http_upload = "urn:xmpp:http:upload";
40 40
41 -- identity and feature advertising
41 module:add_identity("store", "file", module:get_option_string("name", "HTTP File Upload")) 42 module:add_identity("store", "file", module:get_option_string("name", "HTTP File Upload"))
42 module:add_feature(xmlns_http_upload); 43 module:add_feature(xmlns_http_upload);
43 44
44 module:add_extension(dataform { 45 module:add_extension(dataform {
45 { name = "FORM_TYPE", type = "hidden", value = xmlns_http_upload }, 46 { name = "FORM_TYPE", type = "hidden", value = xmlns_http_upload },