aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-10-19 10:22:07 +0200
committerChocobozzz <florian.bigard@gmail.com>2017-10-19 10:22:07 +0200
commit10db166bbe510af27cb20cc0f028537af0df9c41 (patch)
treedcffc4fe69f08043332009a7e8408d9b4f5da4bf /server
parent8a02bd0433b7101c5ea36e87a4edb63204d2adec (diff)
downloadPeerTube-10db166bbe510af27cb20cc0f028537af0df9c41.tar.gz
PeerTube-10db166bbe510af27cb20cc0f028537af0df9c41.tar.zst
PeerTube-10db166bbe510af27cb20cc0f028537af0df9c41.zip
Upgrade client dependencies and fix error logs
Diffstat (limited to 'server')
-rw-r--r--server/middlewares/validators/videos.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/validators/videos.ts b/server/middlewares/validators/videos.ts
index f63348e66..3f881e1b5 100644
--- a/server/middlewares/validators/videos.ts
+++ b/server/middlewares/validators/videos.ts
@@ -24,8 +24,8 @@ import {
24 24
25const videosAddValidator = [ 25const videosAddValidator = [
26 body('videofile').custom((value, { req }) => isVideoFile(req.files)).withMessage( 26 body('videofile').custom((value, { req }) => isVideoFile(req.files)).withMessage(
27 'This file is not supported. Are you sure it is of the following type : ' 27 'This file is not supported. Please, make sure it is of the following type : '
28 + CONSTRAINTS_FIELDS.VIDEOS.EXTNAME 28 + CONSTRAINTS_FIELDS.VIDEOS.EXTNAME.join(', ')
29 ), 29 ),
30 body('name').custom(isVideoNameValid).withMessage('Should have a valid name'), 30 body('name').custom(isVideoNameValid).withMessage('Should have a valid name'),
31 body('category').custom(isVideoCategoryValid).withMessage('Should have a valid category'), 31 body('category').custom(isVideoCategoryValid).withMessage('Should have a valid category'),