diff options
Diffstat (limited to 'server/middlewares/reqValidators')
-rw-r--r-- | server/middlewares/reqValidators/videos.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/middlewares/reqValidators/videos.js b/server/middlewares/reqValidators/videos.js index 12e878e81..c20660452 100644 --- a/server/middlewares/reqValidators/videos.js +++ b/server/middlewares/reqValidators/videos.js | |||
@@ -13,8 +13,8 @@ const reqValidatorsVideos = { | |||
13 | } | 13 | } |
14 | 14 | ||
15 | function videosAdd (req, res, next) { | 15 | function videosAdd (req, res, next) { |
16 | req.checkFiles('input_video[0].originalname', 'Should have an input video').notEmpty() | 16 | req.checkFiles('videofile[0].originalname', 'Should have an input video').notEmpty() |
17 | req.checkFiles('input_video[0].mimetype', 'Should have a correct mime type').matches(/video\/(webm)|(mp4)|(ogg)/i) | 17 | req.checkFiles('videofile[0].mimetype', 'Should have a correct mime type').matches(/video\/(webm)|(mp4)|(ogg)/i) |
18 | req.checkBody('name', 'Should have a name').isLength(1, 50) | 18 | req.checkBody('name', 'Should have a name').isLength(1, 50) |
19 | req.checkBody('description', 'Should have a description').isLength(1, 250) | 19 | req.checkBody('description', 'Should have a description').isLength(1, 250) |
20 | 20 | ||