diff options
author | Rigel Kent <sendmemail@rigelk.eu> | 2020-11-23 10:45:42 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2020-12-03 10:15:49 +0100 |
commit | d4132d3f56b392a2e4e632db59e6644e4851228e (patch) | |
tree | be903734aa9ce3d669c40656a0f81bd3e9c7978c /support/doc/api | |
parent | 4a54a93941d1c095bf249331df799c51e39c3774 (diff) | |
download | PeerTube-d4132d3f56b392a2e4e632db59e6644e4851228e.tar.gz PeerTube-d4132d3f56b392a2e4e632db59e6644e4851228e.tar.zst PeerTube-d4132d3f56b392a2e4e632db59e6644e4851228e.zip |
more explicit error messages for file uploads
Diffstat (limited to 'support/doc/api')
-rw-r--r-- | support/doc/api/openapi.yaml | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/support/doc/api/openapi.yaml b/support/doc/api/openapi.yaml index 6dd51ec7c..4f9bca729 100644 --- a/support/doc/api/openapi.yaml +++ b/support/doc/api/openapi.yaml | |||
@@ -972,6 +972,14 @@ paths: | |||
972 | application/json: | 972 | application/json: |
973 | schema: | 973 | schema: |
974 | $ref: '#/components/schemas/Avatar' | 974 | $ref: '#/components/schemas/Avatar' |
975 | '413': | ||
976 | description: image file too large | ||
977 | headers: | ||
978 | X-File-Maximum-Size: | ||
979 | schema: | ||
980 | type: string | ||
981 | format: Nginx size | ||
982 | description: Maximum file size for the avatar | ||
975 | requestBody: | 983 | requestBody: |
976 | content: | 984 | content: |
977 | multipart/form-data: | 985 | multipart/form-data: |
@@ -1308,6 +1316,14 @@ paths: | |||
1308 | description: user video quota is exceeded with this video | 1316 | description: user video quota is exceeded with this video |
1309 | '408': | 1317 | '408': |
1310 | description: upload has timed out | 1318 | description: upload has timed out |
1319 | '413': | ||
1320 | description: video file too large | ||
1321 | headers: | ||
1322 | X-File-Maximum-Size: | ||
1323 | schema: | ||
1324 | type: string | ||
1325 | format: Nginx size | ||
1326 | description: Maximum file size for the video | ||
1311 | '422': | 1327 | '422': |
1312 | description: invalid input file | 1328 | description: invalid input file |
1313 | requestBody: | 1329 | requestBody: |