aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares
diff options
context:
space:
mode:
authorChocobozzz <florian.bigard@gmail.com>2017-11-28 14:51:00 +0100
committerChocobozzz <florian.bigard@gmail.com>2017-11-28 14:51:00 +0100
commitc60774b05b12d262ed27d8efeb0905ac283eeebb (patch)
treeb8bec48f57e19f263819ed09a8696060790bc173 /server/middlewares
parent7dbdc3bace5fce434d59ccb76b2e8c699cd07c1c (diff)
downloadPeerTube-c60774b05b12d262ed27d8efeb0905ac283eeebb.tar.gz
PeerTube-c60774b05b12d262ed27d8efeb0905ac283eeebb.tar.zst
PeerTube-c60774b05b12d262ed27d8efeb0905ac283eeebb.zip
Remove max duration/filesize constraints
Diffstat (limited to 'server/middlewares')
-rw-r--r--server/middlewares/validators/videos.ts9
1 files changed, 0 insertions, 9 deletions
diff --git a/server/middlewares/validators/videos.ts b/server/middlewares/validators/videos.ts
index 3cbf98312..52b4475ce 100644
--- a/server/middlewares/validators/videos.ts
+++ b/server/middlewares/validators/videos.ts
@@ -6,7 +6,6 @@ import {
6 isVideoAbuseReasonValid, 6 isVideoAbuseReasonValid,
7 isVideoCategoryValid, 7 isVideoCategoryValid,
8 isVideoDescriptionValid, 8 isVideoDescriptionValid,
9 isVideoDurationValid,
10 isVideoExist, 9 isVideoExist,
11 isVideoFile, 10 isVideoFile,
12 isVideoLanguageValid, 11 isVideoLanguageValid,
@@ -82,14 +81,6 @@ const videosAddValidator = [
82 return 81 return
83 } 82 }
84 83
85 if (!isVideoDurationValid('' + duration)) {
86 return res.status(400)
87 .json({
88 error: 'Duration of the video file is too big (max: ' + CONSTRAINTS_FIELDS.VIDEOS.DURATION.max + 's).'
89 })
90 .end()
91 }
92
93 videoFile['duration'] = duration 84 videoFile['duration'] = duration
94 85
95 return next() 86 return next()