comparison mod_http_upload/README.markdown @ 2679:5f60dd12dbb8

mod_http_upload/README: Add sub-headings under limits
author Kim Alvefur <zash@zash.se>
date Thu, 13 Apr 2017 16:36:25 +0200
parents 2dec7cad9218
children d0948bd96a7b
comparison
equal deleted inserted replaced
2678:2dec7cad9218 2679:5f60dd12dbb8
25 Alternatively it can be added to `modules_enabled` like other modules. 25 Alternatively it can be added to `modules_enabled` like other modules.
26 26
27 Limits 27 Limits
28 ------ 28 ------
29 29
30 ### Max size
31
30 A maximum file size can be set by: 32 A maximum file size can be set by:
31 33
32 ``` {.lua} 34 ``` {.lua}
33 http_upload_file_size_limit = 123 -- bytes 35 http_upload_file_size_limit = 123 -- bytes
34 ``` 36 ```
35 37
36 Default is 1MB (1024\*1024). 38 Default is 1MB (1024\*1024).
37 39
38 This can not be set over the value of `http_max_content_size` (default 10M). 40 This can not be set over the value of `http_max_content_size` (default 10M).
39 41
42 ### Max age
43
40 Files can be set to be deleted after some time: 44 Files can be set to be deleted after some time:
41 45
42 ``` lua 46 ``` lua
43 http_upload_expire_after = 60 * 60 * 24 * 7 -- a week in seconds 47 http_upload_expire_after = 60 * 60 * 24 * 7 -- a week in seconds
44 ``` 48 ```
49
50 ### User quota
45 51
46 A total maximum size of all uploaded files per user can be set by: 52 A total maximum size of all uploaded files per user can be set by:
47 53
48 ``` lua 54 ``` lua
49 http_upload_quota = 1234 -- bytes 55 http_upload_quota = 1234 -- bytes