Hard limit on requiring accessToken. Rephrased some sections

pull/1189/head
Will Hunt 6 years ago committed by GitHub
parent eeaf4385d7
commit 091b2a6771
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -272,15 +272,13 @@ paths:
"/config": "/config":
get: get:
summary: Get the configuration for the media repository. summary: Get the configuration for the media repository.
Clients SHOULD use this as a guide when uploading content. Clients SHOULD use this as a guide when using media endpoints.
All values are intentionally left optional. Clients SHOULD follow All values are intentionally left optional. Clients SHOULD follow
the advice given in the field description when the field is not available. the advice given in the field description when the field is not available.
**NOTE:** Reverse proxies may apply their own configuration. **NOTE:** The /config endpoint is a guide. Other middleware such as
reverse proxies may apply their own configuration not described on this
endpoint.
If an accessToken is supplied, the configuration applied to the authenticated user is returned.
Otherwise it should give the configuration applied globally to the server.
operationId: getConfig operationId: getConfig
produces: ["application/json"] produces: ["application/json"]
security: security:
@ -294,8 +292,9 @@ paths:
m.upload.size: m.upload.size:
type: number type: number
description: |- description: |-
The maximum size an upload can be in bytes. If not listed or null, The maximum size an upload can be in bytes.
the upload limit should be treated as unknown. Clients SHOULD use this as a guide when uploading content.
If not listed or null, the size limit should be treated as unknown.
examples: examples:
application/json: { application/json: {
"m.upload.size": 50000000 "m.upload.size": 50000000

Loading…
Cancel
Save