aboutsummaryrefslogtreecommitdiffhomepage
path: root/middlewares
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2015-12-04 21:43:26 +0100
committerChocobozzz <florian.bigard@gmail.com>2015-12-04 21:43:26 +0100
commit207fbab44d04ec92d748b6a32ec9a237029f820b (patch)
treef5878ab3b56e33fecf6aba1836883771fcba8638 /middlewares
parent155098af555ef94fb543beb8b82d21523362a7c7 (diff)
downloadPeerTube-207fbab44d04ec92d748b6a32ec9a237029f820b.tar.gz
PeerTube-207fbab44d04ec92d748b6a32ec9a237029f820b.tar.zst
PeerTube-207fbab44d04ec92d748b6a32ec9a237029f820b.zip
Update node modules
Diffstat (limited to 'middlewares')
-rw-r--r--middlewares/reqValidators/videos.js4
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