|
|
@ -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
|
|
|
|