Comparison

mod_http_upload/mod_http_upload.lua @ 2053:40056a27f394

mod_http_upload: Lower default size limit to 1MB
author Kim Alvefur <zash@zash.se>
date Wed, 24 Feb 2016 15:59:18 +0100
parent 1967:2ce2b194d501
child 2065:624e3fed6f92
comparison
equal deleted inserted replaced
2052:ad2966b932ed 2053:40056a27f394
19 local function join_path(a, b) 19 local function join_path(a, b)
20 return a .. package.config:sub(1,1) .. b; 20 return a .. package.config:sub(1,1) .. b;
21 end 21 end
22 22
23 -- config 23 -- config
24 local file_size_limit = module:get_option_number(module.name .. "_file_size_limit", 10 * 1024 * 1024); -- 10 MB 24 local file_size_limit = module:get_option_number(module.name .. "_file_size_limit", 1024 * 1024); -- 1 MB
25 25
26 -- depends 26 -- depends
27 module:depends("http"); 27 module:depends("http");
28 module:depends("disco"); 28 module:depends("disco");
29 29