diff options
Diffstat (limited to 'server')
-rw-r--r-- | server/lib/uploadx.ts | 4 |
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 | ||
5 | const uploadx = new Uploadx({ | 5 | const 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 | ||