diff options
author | Chocobozzz <florian.bigard@gmail.com> | 2016-05-21 18:03:34 +0200 |
---|---|---|
committer | Chocobozzz <florian.bigard@gmail.com> | 2016-05-21 18:08:23 +0200 |
commit | 501bc6c2b186f6a724a5b619d15aa44791f13995 (patch) | |
tree | 4a6e1d244c5f94305a25b6ec6f50f1a71ce9295d /server/middlewares | |
parent | 295ba044afc394ef51dac22263063670362787ec (diff) | |
download | PeerTube-501bc6c2b186f6a724a5b619d15aa44791f13995.tar.gz PeerTube-501bc6c2b186f6a724a5b619d15aa44791f13995.tar.zst PeerTube-501bc6c2b186f6a724a5b619d15aa44791f13995.zip |
Thumbnail, author and duration support in client
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/reqValidators/videos.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/reqValidators/videos.js b/server/middlewares/reqValidators/videos.js index 6e6e75fb3..d4dec1a59 100644 --- a/server/middlewares/reqValidators/videos.js +++ b/server/middlewares/reqValidators/videos.js | |||
@@ -30,7 +30,7 @@ function videosAdd (req, res, next) { | |||
30 | } | 30 | } |
31 | 31 | ||
32 | if (duration > constants.MAXIMUM_VIDEO_DURATION) { | 32 | if (duration > constants.MAXIMUM_VIDEO_DURATION) { |
33 | return res.status(400).send('Duration of the video file is too big.') | 33 | return res.status(400).send('Duration of the video file is too big (' + constants.MAXIMUM_VIDEO_DURATION + ').') |
34 | } | 34 | } |
35 | 35 | ||
36 | videoFile.duration = duration | 36 | videoFile.duration = duration |