diff options
author | Chocobozzz <me@florianbigard.com> | 2021-08-18 11:25:08 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-08-18 11:25:08 +0200 |
commit | 586a7478b609ed4b7518419e91f0a799c23fbaa1 (patch) | |
tree | 94bb9445bae3e458b85060e24ab7064ebcfd010a /server/middlewares/validators | |
parent | 63436fc5eadc3f58a047fe87be9c4afa84a7a9ca (diff) | |
download | PeerTube-586a7478b609ed4b7518419e91f0a799c23fbaa1.tar.gz PeerTube-586a7478b609ed4b7518419e91f0a799c23fbaa1.tar.zst PeerTube-586a7478b609ed4b7518419e91f0a799c23fbaa1.zip |
Fix caption log
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r-- | server/middlewares/validators/videos/video-captions.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos/video-captions.ts b/server/middlewares/validators/videos/video-captions.ts index 2946f3e15..6bc127e01 100644 --- a/server/middlewares/validators/videos/video-captions.ts +++ b/server/middlewares/validators/videos/video-captions.ts | |||
@@ -17,7 +17,8 @@ const addVideoCaptionValidator = [ | |||
17 | .custom((_, { req }) => isVideoCaptionFile(req.files, 'captionfile')) | 17 | .custom((_, { req }) => isVideoCaptionFile(req.files, 'captionfile')) |
18 | .withMessage( | 18 | .withMessage( |
19 | 'This caption file is not supported or too large. ' + | 19 | 'This caption file is not supported or too large. ' + |
20 | `Please, make sure it is under ${CONSTRAINTS_FIELDS.VIDEO_CAPTIONS.CAPTION_FILE.FILE_SIZE} and one of the following mimetypes: ` + | 20 | `Please, make sure it is under ${CONSTRAINTS_FIELDS.VIDEO_CAPTIONS.CAPTION_FILE.FILE_SIZE.max} bytes ` + |
21 | 'and one of the following mimetypes: ' + | ||
21 | Object.keys(MIMETYPES.VIDEO_CAPTIONS.MIMETYPE_EXT).map(key => `${key} (${MIMETYPES.VIDEO_CAPTIONS.MIMETYPE_EXT[key]})`).join(', ') | 22 | Object.keys(MIMETYPES.VIDEO_CAPTIONS.MIMETYPE_EXT).map(key => `${key} (${MIMETYPES.VIDEO_CAPTIONS.MIMETYPE_EXT[key]})`).join(', ') |
22 | ), | 23 | ), |
23 | 24 | ||