Mercurial > prosody-modules
comparison mod_http_upload_external/README.markdown @ 3360:0149954cee37
mod_http_upload_external: Add note about correct behaviour in the presence of multiple versions
author | Matthew Wild <mwild1@gmail.com> |
---|---|
date | Sun, 21 Oct 2018 15:19:58 +0100 |
parents | 3d01ab6b1186 |
children | 5741e6511f3d |
comparison
equal
deleted
inserted
replaced
3359:3d01ab6b1186 | 3360:0149954cee37 |
---|---|
108 | v2 | Validates the filename, size and MIME type. This allows the server to implement MIME type restrictions. | | 108 | v2 | Validates the filename, size and MIME type. This allows the server to implement MIME type restrictions. | |
109 | 109 |
110 It is probable that a future v3 will be specified that allows carrying information about the uploader identity, allowing | 110 It is probable that a future v3 will be specified that allows carrying information about the uploader identity, allowing |
111 the implementation of per-user quotas and limits. | 111 the implementation of per-user quotas and limits. |
112 | 112 |
113 Implementations may implement one or more versions of the protocol simultaneously. The XMPP server generates the URLs and ultimately selects which version will be used. | 113 Implementations may implement one or more versions of the protocol simultaneously. The XMPP server generates the URLs and |
114 ultimately selects which version will be used. | |
115 | |
116 XMPP servers MUST only generate URLs with **one** of the versions listed here. However in case multiple parameters are | |
117 present, upload services MUST **only** use the token from the highest parameter version that they support. | |
114 | 118 |
115 #### Version 1 (v) | 119 #### Version 1 (v) |
116 | 120 |
117 The token will be in the URL query parameter 'v'. If it is absent, fail with 403 Forbidden. | 121 The token will be in the URL query parameter 'v'. If it is absent, fail with 403 Forbidden. |
118 | 122 |