aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/uploadx.ts
diff options
context:
space:
mode:
Diffstat (limited to 'server/lib/uploadx.ts')
-rw-r--r--server/lib/uploadx.ts6
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'
2import { getResumableUploadPath } from '@server/helpers/upload' 2import { getResumableUploadPath } from '@server/helpers/upload'
3import { Uploadx } from '@uploadx/core' 3import { Uploadx } from '@uploadx/core'
4 4
5const uploadx = new Uploadx({ directory: getResumableUploadPath() }) 5const uploadx = new Uploadx({
6 directory: getResumableUploadPath(),
7 // Could be big with thumbnails/previews
8 maxMetadataSize: '10MB'
9})
6uploadx.getUserId = (_, res: express.Response) => res.locals.oauth?.token.user.id 10uploadx.getUserId = (_, res: express.Response) => res.locals.oauth?.token.user.id
7 11
8export { 12export {