aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/middlewares/validators
diff options
context:
space:
mode:
Diffstat (limited to 'server/middlewares/validators')
-rw-r--r--server/middlewares/validators/videos/videos.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/middlewares/validators/videos/videos.ts b/server/middlewares/validators/videos/videos.ts
index 4916decbf..3ebdbc33d 100644
--- a/server/middlewares/validators/videos/videos.ts
+++ b/server/middlewares/validators/videos/videos.ts
@@ -211,7 +211,7 @@ const videosAddResumableInitValidator = getCommonVideoEditAttributes().concat([
211 const videoFileMetadata = { 211 const videoFileMetadata = {
212 mimetype: req.headers['x-upload-content-type'] as string, 212 mimetype: req.headers['x-upload-content-type'] as string,
213 size: +req.headers['x-upload-content-length'], 213 size: +req.headers['x-upload-content-length'],
214 originalname: req.body.name 214 originalname: req.body.filename
215 } 215 }
216 216
217 const user = res.locals.oauth.token.User 217 const user = res.locals.oauth.token.User