Update content-repo.yaml

This commit is contained in:
Will Hunt 2018-06-28 00:14:42 +01:00 committed by GitHub
parent ddc152347b
commit 80935eadcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -273,13 +273,13 @@ paths:
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 uploading content.
All values are intentionally left optional, the client MUST assume All values are intentionally left optional. Clients SHOULD follow
that any field not given is not limited. the advise given in the field description when the field is not avaliable.
**NOTE:** Reverse proxies may apply their own configuration. **NOTE:** Reverse proxies may apply their own configuration.
If an accessToken is supplied, the configuration applied to the authenticated user. 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. Otherwise it should give the configuration applied globally to the server.
operationId: getConfig operationId: getConfig
produces: ["application/json"] produces: ["application/json"]
@ -293,7 +293,9 @@ paths:
properties: properties:
m.upload.size: m.upload.size:
type: number type: number
description: "The maximum size an upload can be in bytes." description: |-
The maximum size an upload can be in bytes. If not listed or null,
the upload limit should be treated as unknown.
examples: examples:
application/json: { application/json: {
"m.upload.size": 50000000 "m.upload.size": 50000000