aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/reqValidators/videos.js
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2016-06-07 22:34:02 +0200
committerChocobozzz <florian.bigard@gmail.com>2016-06-07 22:34:02 +0200
commite822fdaeee90cb7c70d5678f19249198cd7aae8c (patch)
tree07678eff3b3d378bda40800002b515b982017c78 /server/middlewares/reqValidators/videos.js
parent8c255eb53c8f47bd64778d6fbcb93b248ee14163 (diff)
downloadPeerTube-e822fdaeee90cb7c70d5678f19249198cd7aae8c.tar.gz
PeerTube-e822fdaeee90cb7c70d5678f19249198cd7aae8c.tar.zst
PeerTube-e822fdaeee90cb7c70d5678f19249198cd7aae8c.zip
Use ng2-file-upload instead of jquery and add tags support to the video
upload form
Diffstat (limited to 'server/middlewares/reqValidators/videos.js')
-rw-r--r--server/middlewares/reqValidators/videos.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/reqValidators/videos.js b/server/middlewares/reqValidators/videos.js
index 3618e4716..f31fd93a2 100644
--- a/server/middlewares/reqValidators/videos.js
+++ b/server/middlewares/reqValidators/videos.js
@@ -32,7 +32,7 @@ function videosAdd (req, res, next) {
32 } 32 }
33 33
34 if (!customValidators.isVideoDurationValid(duration)) { 34 if (!customValidators.isVideoDurationValid(duration)) {
35 return res.status(400).send('Duration of the video file is too big (max: ' + constants.MAXIMUM_VIDEO_DURATION + 's).') 35 return res.status(400).send('Duration of the video file is too big (max: ' + constants.VIDEOS_CONSTRAINTS_FIELDS.DURATION.max + 's).')
36 } 36 }
37 37
38 videoFile.duration = duration 38 videoFile.duration = duration