Skip to content

Commit 8e93ad8

Browse files
authored
fix(storage-uploadthing): pass clientUploads.routerInputConfig to the handler (#11962)
PR #11954 added this property but didn't actually pass it through to the handler.
1 parent f310c90 commit 8e93ad8

File tree

1 file changed

+4
-0
lines changed
  • packages/storage-uploadthing/src

1 file changed

+4
-0
lines changed

packages/storage-uploadthing/src/index.ts

+4
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ export const uploadthingStorage: UploadthingPlugin =
7676
? uploadthingStorageOptions.clientUploads.access
7777
: undefined,
7878
acl: uploadthingStorageOptions.options.acl || 'public-read',
79+
routerInputConfig:
80+
typeof uploadthingStorageOptions.clientUploads === 'object'
81+
? uploadthingStorageOptions.clientUploads.routerInputConfig
82+
: undefined,
7983
token: uploadthingStorageOptions.options.token,
8084
}),
8185
serverHandlerPath: '/storage-uploadthing-client-upload-route',

0 commit comments

Comments
 (0)