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.ts3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/lib/uploadx.ts b/server/lib/uploadx.ts
index 9484eff75..cdbe7e473 100644
--- a/server/lib/uploadx.ts
+++ b/server/lib/uploadx.ts
@@ -1,4 +1,5 @@
1import express from 'express' 1import express from 'express'
2import { buildLogger } from '@server/helpers/logger'
2import { getResumableUploadPath } from '@server/helpers/upload' 3import { getResumableUploadPath } from '@server/helpers/upload'
3import { Uploadx } from '@uploadx/core' 4import { Uploadx } from '@uploadx/core'
4 5
@@ -10,6 +11,8 @@ const uploadx = new Uploadx({
10 // Could be big with thumbnails/previews 11 // Could be big with thumbnails/previews
11 maxMetadataSize: '10MB', 12 maxMetadataSize: '10MB',
12 13
14 logger: buildLogger('uploadx'),
15
13 userIdentifier: (_, res: express.Response) => { 16 userIdentifier: (_, res: express.Response) => {
14 if (!res.locals.oauth) return undefined 17 if (!res.locals.oauth) return undefined
15 18