From 0c7ae98cf7f63c8e9b1bd0a665e1093d2da24b6c Mon Sep 17 00:00:00 2001 From: lookshe Date: Tue, 5 Jan 2016 12:53:44 +0100 Subject: deleted old "lib" and corrected copy-paste-error --- prosody-module/mod_http_upload_external/mod_http_upload_external.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'prosody-module/mod_http_upload_external/mod_http_upload_external.lua') diff --git a/prosody-module/mod_http_upload_external/mod_http_upload_external.lua b/prosody-module/mod_http_upload_external/mod_http_upload_external.lua index c9d7335..4910ab9 100644 --- a/prosody-module/mod_http_upload_external/mod_http_upload_external.lua +++ b/prosody-module/mod_http_upload_external/mod_http_upload_external.lua @@ -52,7 +52,7 @@ module:hook("iq/host/"..xmlns_http_upload..":request", function (event) local content_type = request:get_child_text("content-type"); -- build the body - local reqbody = "xmpp_server_key=" .. xmpp_server_key .. "&size=" .. size .. "&filename=" .. filename .. "&user_jid=" .. user_jid; + local reqbody = "xmpp_server_key=" .. xmpp_server_key .. "&size=" .. filesize .. "&filename=" .. filename .. "&user_jid=" .. orig_from; if content_type then reqbody = reqbody .. "&content_type=" .. content_type; end -- cgit v1.2.3