From 77d0ae7b201264423d81e1019139eac3d7716536 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 19 Apr 2022 11:44:03 +0200 Subject: Fix 2 hours limit on uploads --- server/lib/uploadx.ts | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'server') 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' const uploadx = new Uploadx({ directory: getResumableUploadPath(), + + expiration: { maxAge: undefined, rolling: true }, + // Could be big with thumbnails/previews maxMetadataSize: '10MB', + userIdentifier: (_, res: express.Response) => { if (!res.locals.oauth) return undefined -- cgit v1.2.3