Mercurial > prosody-modules
comparison mod_http_upload/README.markdown @ 2683:d0948bd96a7b
mod_http_upload: Add support for limiting file types to upload
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Thu, 13 Apr 2017 20:29:41 +0200 |
| parents | 5f60dd12dbb8 |
| children | d48faff92490 |
comparison
equal
deleted
inserted
replaced
| 2682:3fd50495c89d | 2683:d0948bd96a7b |
|---|---|
| 53 | 53 |
| 54 ``` lua | 54 ``` lua |
| 55 http_upload_quota = 1234 -- bytes | 55 http_upload_quota = 1234 -- bytes |
| 56 ``` | 56 ``` |
| 57 | 57 |
| 58 ### File types | |
| 59 | |
| 60 Accepted file types can be limited by MIME type: | |
| 61 | |
| 62 ``` lua | |
| 63 http_upload_allowed_file_types = { "image/*", "text/plain" } | |
| 64 ``` | |
| 65 | |
| 58 Path | 66 Path |
| 59 ---- | 67 ---- |
| 60 | 68 |
| 61 By default, uploaded files are put in a sub-directory of the default | 69 By default, uploaded files are put in a sub-directory of the default |
| 62 Prosody storage path (usually `/var/lib/prosody`). This can be changed: | 70 Prosody storage path (usually `/var/lib/prosody`). This can be changed: |
