Changeset

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
parents 2052:ad2966b932ed
children 2054:b7c528027762
files mod_http_upload/README.markdown mod_http_upload/mod_http_upload.lua
diffstat 2 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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
 ----
--- 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");