# HG changeset patch # User Kim Alvefur # Date 1456325958 -3600 # Node ID 40056a27f394b920365f916b4ff774523d597099 # Parent ad2966b932ed8e3ca843918a898e8d493b3bf8a1 mod_http_upload: Lower default size limit to 1MB diff -r ad2966b932ed -r 40056a27f394 mod_http_upload/README.markdown --- a/mod_http_upload/README.markdown Wed Feb 24 15:58:49 2016 +0100 +++ b/mod_http_upload/README.markdown Wed Feb 24 15:59:18 2016 +0100 @@ -58,7 +58,7 @@ http_upload_file_size_limit = 123 -- bytes ``` -Default is 10MB (10*1024*1024). +Default is 1MB (1024*1024). Path ---- diff -r ad2966b932ed -r 40056a27f394 mod_http_upload/mod_http_upload.lua --- a/mod_http_upload/mod_http_upload.lua Wed Feb 24 15:58:49 2016 +0100 +++ b/mod_http_upload/mod_http_upload.lua Wed Feb 24 15:59:18 2016 +0100 @@ -21,7 +21,7 @@ end -- config -local file_size_limit = module:get_option_number(module.name .. "_file_size_limit", 10 * 1024 * 1024); -- 10 MB +local file_size_limit = module:get_option_number(module.name .. "_file_size_limit", 1024 * 1024); -- 1 MB -- depends module:depends("http");