aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/controllers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-01-18 09:29:46 +0100
committerChocobozzz <me@florianbigard.com>2022-01-18 10:47:26 +0100
commit2f0a0ae21789ada8429c91a253288f738857a19b (patch)
treeea6bb708b3a65723b8fbf2d438cc6be88205b033 /server/controllers
parent743dab5517d4501f6b35cfc795de6c8b6f41ebb3 (diff)
downloadPeerTube-2f0a0ae21789ada8429c91a253288f738857a19b.tar.gz
PeerTube-2f0a0ae21789ada8429c91a253288f738857a19b.tar.zst
PeerTube-2f0a0ae21789ada8429c91a253288f738857a19b.zip
Upgrade uploadx dependency
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/api/videos/upload.ts5
1 files changed, 1 insertions, 4 deletions
diff --git a/server/controllers/api/videos/upload.ts b/server/controllers/api/videos/upload.ts
index 89787f20b..fd90d9915 100644
--- a/server/controllers/api/videos/upload.ts
+++ b/server/controllers/api/videos/upload.ts
@@ -40,8 +40,7 @@ import {
40 authenticate, 40 authenticate,
41 videosAddLegacyValidator, 41 videosAddLegacyValidator,
42 videosAddResumableInitValidator, 42 videosAddResumableInitValidator,
43 videosAddResumableValidator, 43 videosAddResumableValidator
44 videosResumableUploadIdValidator
45} from '../../../middlewares' 44} from '../../../middlewares'
46import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update' 45import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update'
47import { VideoModel } from '../../../models/video/video' 46import { VideoModel } from '../../../models/video/video'
@@ -88,7 +87,6 @@ uploadRouter.post('/upload-resumable',
88 87
89uploadRouter.delete('/upload-resumable', 88uploadRouter.delete('/upload-resumable',
90 authenticate, 89 authenticate,
91 videosResumableUploadIdValidator,
92 asyncMiddleware(deleteUploadResumableCache), 90 asyncMiddleware(deleteUploadResumableCache),
93 uploadx.upload 91 uploadx.upload
94) 92)
@@ -96,7 +94,6 @@ uploadRouter.delete('/upload-resumable',
96uploadRouter.put('/upload-resumable', 94uploadRouter.put('/upload-resumable',
97 openapiOperationDoc({ operationId: 'uploadResumable' }), 95 openapiOperationDoc({ operationId: 'uploadResumable' }),
98 authenticate, 96 authenticate,
99 videosResumableUploadIdValidator,
100 uploadx.upload, // uploadx doesn't next() before the file upload completes 97 uploadx.upload, // uploadx doesn't next() before the file upload completes
101 asyncMiddleware(videosAddResumableValidator), 98 asyncMiddleware(videosAddResumableValidator),
102 asyncMiddleware(addVideoResumable) 99 asyncMiddleware(addVideoResumable)