aboutsummaryrefslogtreecommitdiffstats
path: root/prosody-module
diff options
context:
space:
mode:
Diffstat (limited to 'prosody-module')
-rw-r--r--prosody-module/mod_http_upload_external/mod_http_upload_external.lua5
1 files changed, 0 insertions, 5 deletions
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 9aa0f7c..b4fbb31 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
@@ -47,11 +47,6 @@ module:hook("iq/host/"..xmlns_http_upload..":request", function (event)
if not filesize then
origin.send(st.error_reply(stanza, "modify", "bad-request", "Missing or invalid file size"));
return true;
- elseif filesize > file_size_limit then
- origin.send(st.error_reply(stanza, "modify", "not-acceptable", "File too large",
- st.stanza("file-too-large", {xmlns=xmlns_http_upload})
- :tag("max-size"):text(tostring(file_size_limit))));
- return true;
end
local content_type = request:get_child_text("content-type");