fix(storage-uploadthing): pass clientUploads.routerInputConfig to the handler (#11962)

PR https://github.com/payloadcms/payload/pull/11954 added this property
but didn't actually pass it through to the handler.
This commit is contained in:
Sasha
2025-04-03 02:51:30 +03:00
committed by GitHub
parent f310c90211
commit 8e93ad8f5f

View File

@@ -76,6 +76,10 @@ export const uploadthingStorage: UploadthingPlugin =
? uploadthingStorageOptions.clientUploads.access
: undefined,
acl: uploadthingStorageOptions.options.acl || 'public-read',
routerInputConfig:
typeof uploadthingStorageOptions.clientUploads === 'object'
? uploadthingStorageOptions.clientUploads.routerInputConfig
: undefined,
token: uploadthingStorageOptions.options.token,
}),
serverHandlerPath: '/storage-uploadthing-client-upload-route',