aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-03 14:23:45 +0100
committerChocobozzz <me@florianbigard.com>2021-12-03 14:23:45 +0100
commit453537426a4e172967320cfac4bb1f53c28d94f5 (patch)
treee29f12f364a5e449c9edb6e011e6ca1d2a4f5857 /server
parente78acf81ff00568555e9823c1d9b01c7616b7272 (diff)
downloadPeerTube-453537426a4e172967320cfac4bb1f53c28d94f5.tar.gz
PeerTube-453537426a4e172967320cfac4bb1f53c28d94f5.tar.zst
PeerTube-453537426a4e172967320cfac4bb1f53c28d94f5.zip
Fix too long filename video upload
Diffstat (limited to 'server')
-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