Comparison

mod_http_upload/README.markdown @ 2677:6daaa1ad2559

mod_http_upload: Add option for expiry of files after a configurable time (closes #557)
author Kim Alvefur <zash@zash.se>
date Thu, 13 Apr 2017 16:31:00 +0200
parent 2641:2d83e6c8160b
child 2678:2dec7cad9218
comparison
equal deleted inserted replaced
2676:1b081c8fc1d9 2677:6daaa1ad2559
35 35
36 Default is 1MB (1024\*1024). 36 Default is 1MB (1024\*1024).
37 37
38 This can not be set over the value of `http_max_content_size` (default 10M). 38 This can not be set over the value of `http_max_content_size` (default 10M).
39 39
40 Files can be set to be deleted after some time:
41
42 ``` lua
43 http_upload_expire_after = 60 * 60 * 24 * 7 -- a week in seconds
44 ```
45
40 Path 46 Path
41 ---- 47 ----
42 48
43 By default, uploaded files are put in a sub-directory of the default 49 By default, uploaded files are put in a sub-directory of the default
44 Prosody storage path (usually `/var/lib/prosody`). This can be changed: 50 Prosody storage path (usually `/var/lib/prosody`). This can be changed: