From 207fbab44d04ec92d748b6a32ec9a237029f820b Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 4 Dec 2015 21:43:26 +0100 Subject: Update node modules --- middlewares/reqValidators/videos.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'middlewares/reqValidators/videos.js') 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 @@ } videos.videosAdd = function (req, res, next) { - req.checkFiles('input_video.originalname', 'Should have an input video').notEmpty() - req.checkFiles('input_video.mimetype', 'Should have a correct mime type').matches(/video\/(webm)|(mp4)|(ogg)/i) + req.checkFiles('input_video[0].originalname', 'Should have an input video').notEmpty() + req.checkFiles('input_video[0].mimetype', 'Should have a correct mime type').matches(/video\/(webm)|(mp4)|(ogg)/i) req.checkBody('name', 'Should have a name').isLength(1, 50) req.checkBody('description', 'Should have a description').isLength(1, 250) -- cgit v1.2.3