Mercurial > prosody-modules
comparison mod_http_upload/README.markdown @ 2284:1266f5c17c0d
mod_http_upload: Mention modules_enabled, but no example
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Sat, 20 Aug 2016 18:33:43 +0200 |
parents | e276ed33bc1a |
children | 8fad27d568aa |
comparison
equal
deleted
inserted
replaced
2283:bd1117002a9b | 2284:1266f5c17c0d |
---|---|
1 --- | 1 --- |
2 labels: Stage-Alpha | |
3 description: HTTP File Upload | 2 description: HTTP File Upload |
4 ... | 3 labels: 'Stage-Alpha' |
4 --- | |
5 | 5 |
6 Introduction | 6 Introduction |
7 ============ | 7 ============ |
8 | 8 |
9 This module implements [XEP-0363], which lets clients upload files over | 9 This module implements [XEP-0363], which lets clients upload files |
10 HTTP. | 10 over HTTP. |
11 | 11 |
12 Configuration | 12 Configuration |
13 ============= | 13 ============= |
14 | 14 |
15 mod\_http\_upload relies on Prosodys HTTP server and mod\_http for | 15 mod\_http\_upload relies on Prosodys HTTP server and mod\_http for |
16 serving HTTP requests. See [Prosodys HTTP server | 16 serving HTTP requests. See [Prosodys HTTP server documentation][doc:http] |
17 documentation](https://prosody.im/doc/http) for information about how to | 17 for information about how to configure ports, HTTP Host names etc. |
18 configure ports, HTTP Host names etc. | |
19 | 18 |
20 Simply add a new Component definition: | 19 The module can be added as a new Component definition: |
21 | 20 |
22 Component "upload.example.org" "http_upload" | 21 ``` {.lua} |
22 Component "upload.example.org" "http_upload" | |
23 ``` | |
24 | |
25 Alternatively it can be added to `modules_enabled` like other modules. | |
23 | 26 |
24 Limits | 27 Limits |
25 ------ | 28 ------ |
26 | 29 |
27 A maximum file size can be set by: | 30 A maximum file size can be set by: |
28 | 31 |
29 ``` {.lua} | 32 ``` {.lua} |
30 http_upload_file_size_limit = 123 -- bytes | 33 http_upload_file_size_limit = 123 -- bytes |
31 ``` | 34 ``` |
32 | 35 |
33 Default is 1MB (1024*1024). | 36 Default is 1MB (1024\*1024). |
34 | 37 |
35 Path | 38 Path |
36 ---- | 39 ---- |
37 | 40 |
38 By default, uploaded files are put in a sub-directory of the default | 41 By default, uploaded files are put in a sub-directory of the default |