diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-03 14:40:52 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-03 14:40:52 +0100 |
commit | 9ea02c48a7a47b5bbed261e847d7d671e266a073 (patch) | |
tree | 9aa64f0f6387a7a3162956ce9730a90c0cb6d3f7 /server/middlewares | |
parent | 6d472b4046084e5f477124b11ac62dca9f6a1a63 (diff) | |
parent | 025d858e7997d6b9895fa6b7beaf23bf5ff814af (diff) | |
download | PeerTube-9ea02c48a7a47b5bbed261e847d7d671e266a073.tar.gz PeerTube-9ea02c48a7a47b5bbed261e847d7d671e266a073.tar.zst PeerTube-9ea02c48a7a47b5bbed261e847d7d671e266a073.zip |
Merge branch 'release/4.0.0' into develop
Diffstat (limited to 'server/middlewares')
-rw-r--r-- | server/middlewares/validators/videos/videos.ts | 2 |
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 |