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.ts4
1 files changed, 4 insertions, 0 deletions
diff --git a/server/lib/uploadx.ts b/server/lib/uploadx.ts
index 34a4461f0..9484eff75 100644
--- a/server/lib/uploadx.ts
+++ b/server/lib/uploadx.ts
@@ -4,8 +4,12 @@ import { Uploadx } from '@uploadx/core'
4 4
5const uploadx = new Uploadx({ 5const uploadx = new Uploadx({
6 directory: getResumableUploadPath(), 6 directory: getResumableUploadPath(),
7
8 expiration: { maxAge: undefined, rolling: true },
9
7 // Could be big with thumbnails/previews 10 // Could be big with thumbnails/previews
8 maxMetadataSize: '10MB', 11 maxMetadataSize: '10MB',
12
9 userIdentifier: (_, res: express.Response) => { 13 userIdentifier: (_, res: express.Response) => {
10 if (!res.locals.oauth) return undefined 14 if (!res.locals.oauth) return undefined
11 15