From ba59af458c7499a38824dd5753bddd6de284850b Mon Sep 17 00:00:00 2001 From: Kim Alvefur Date: Tue, 26 Jan 2021 14:53:24 +0100 Subject: mod_http_file_share: Add file size limit (default 10M) --- spec/scansion/http_upload.scs | 16 ++++++++++++++++ spec/scansion/prosody.cfg.lua | 1 + 2 files changed, 17 insertions(+) (limited to 'spec') diff --git a/spec/scansion/http_upload.scs b/spec/scansion/http_upload.scs index ed4f1bca..72552946 100644 --- a/spec/scansion/http_upload.scs +++ b/spec/scansion/http_upload.scs @@ -21,6 +21,22 @@ Romeo receives: +Romeo sends: + + + + +Romeo receives: + + + + File too large + + 10000000 + + + + Romeo sends: diff --git a/spec/scansion/prosody.cfg.lua b/spec/scansion/prosody.cfg.lua index ca28b6ba..d0964c05 100644 --- a/spec/scansion/prosody.cfg.lua +++ b/spec/scansion/prosody.cfg.lua @@ -133,3 +133,4 @@ Component "pubsub.localhost" "pubsub" storage = "memory" Component "upload.localhost" "http_file_share" +http_file_share_size_limit = 10000000 -- cgit v1.2.3