diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-17 15:49:52 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-17 15:50:02 +0100 |
commit | 293074ae7920040ede7e01d0aec4dabbeeb864ff (patch) | |
tree | 83b199b4c00f7067420c5168dbb6ae1965a8be46 /server/lib/uploadx.ts | |
parent | 84845992947365412733d056b9a9fe6ff15bd53f (diff) | |
download | PeerTube-293074ae7920040ede7e01d0aec4dabbeeb864ff.tar.gz PeerTube-293074ae7920040ede7e01d0aec4dabbeeb864ff.tar.zst PeerTube-293074ae7920040ede7e01d0aec4dabbeeb864ff.zip |
Fix video upload with big preview
Diffstat (limited to 'server/lib/uploadx.ts')
-rw-r--r-- | server/lib/uploadx.ts | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/server/lib/uploadx.ts b/server/lib/uploadx.ts index 11b1044db..36f5a556c 100644 --- a/server/lib/uploadx.ts +++ b/server/lib/uploadx.ts | |||
@@ -2,7 +2,11 @@ import express from 'express' | |||
2 | import { getResumableUploadPath } from '@server/helpers/upload' | 2 | import { getResumableUploadPath } from '@server/helpers/upload' |
3 | import { Uploadx } from '@uploadx/core' | 3 | import { Uploadx } from '@uploadx/core' |
4 | 4 | ||
5 | const uploadx = new Uploadx({ directory: getResumableUploadPath() }) | 5 | const uploadx = new Uploadx({ |
6 | directory: getResumableUploadPath(), | ||
7 | // Could be big with thumbnails/previews | ||
8 | maxMetadataSize: '10MB' | ||
9 | }) | ||
6 | uploadx.getUserId = (_, res: express.Response) => res.locals.oauth?.token.user.id | 10 | uploadx.getUserId = (_, res: express.Response) => res.locals.oauth?.token.user.id |
7 | 11 | ||
8 | export { | 12 | export { |