more explicit error messages for file uploads

This commit is contained in:
Rigel Kent
2020-11-23 10:45:42 +01:00
committed by Chocobozzz
parent 4a54a93941
commit d4132d3f56
14 changed files with 573 additions and 54 deletions

View File

@@ -972,6 +972,14 @@ paths:
application/json:
schema:
$ref: '#/components/schemas/Avatar'
'413':
description: image file too large
headers:
X-File-Maximum-Size:
schema:
type: string
format: Nginx size
description: Maximum file size for the avatar
requestBody:
content:
multipart/form-data:
@@ -1308,6 +1316,14 @@ paths:
description: user video quota is exceeded with this video
'408':
description: upload has timed out
'413':
description: video file too large
headers:
X-File-Maximum-Size:
schema:
type: string
format: Nginx size
description: Maximum file size for the video
'422':
description: invalid input file
requestBody: