diff options
Diffstat (limited to 'server/controllers/api/videos/upload.ts')
-rw-r--r-- | server/controllers/api/videos/upload.ts | 5 |
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' |
46 | import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update' | 45 | import { ScheduleVideoUpdateModel } from '../../../models/video/schedule-video-update' |
47 | import { VideoModel } from '../../../models/video/video' | 46 | import { VideoModel } from '../../../models/video/video' |
@@ -88,7 +87,6 @@ uploadRouter.post('/upload-resumable', | |||
88 | 87 | ||
89 | uploadRouter.delete('/upload-resumable', | 88 | uploadRouter.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', | |||
96 | uploadRouter.put('/upload-resumable', | 94 | uploadRouter.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) |