diff options
Diffstat (limited to 'middlewares/reqValidators/videos.js')
-rw-r--r-- | middlewares/reqValidators/videos.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/middlewares/reqValidators/videos.js b/middlewares/reqValidators/videos.js index 3763a657c..8c4e23b6b 100644 --- a/middlewares/reqValidators/videos.js +++ b/middlewares/reqValidators/videos.js | |||
@@ -24,8 +24,8 @@ | |||
24 | } | 24 | } |
25 | 25 | ||
26 | videos.videosAdd = function (req, res, next) { | 26 | videos.videosAdd = function (req, res, next) { |
27 | req.checkFiles('input_video.originalname', 'Should have an input video').notEmpty() | 27 | req.checkFiles('input_video[0].originalname', 'Should have an input video').notEmpty() |
28 | req.checkFiles('input_video.mimetype', 'Should have a correct mime type').matches(/video\/(webm)|(mp4)|(ogg)/i) | 28 | req.checkFiles('input_video[0].mimetype', 'Should have a correct mime type').matches(/video\/(webm)|(mp4)|(ogg)/i) |
29 | req.checkBody('name', 'Should have a name').isLength(1, 50) | 29 | req.checkBody('name', 'Should have a name').isLength(1, 50) |
30 | req.checkBody('description', 'Should have a description').isLength(1, 250) | 30 | req.checkBody('description', 'Should have a description').isLength(1, 250) |
31 | 31 | ||