UT dropzone error for unaccepted file types

I'm struggling to figure out why UT dropzone (react, nextjs) is throwing an error when I try dropping an unaccepted file type. Error from dropping a Docx:
Something went wrong. Please contact UploadThing and provide the following cause:"TypeError: undefined is not an object (evaluating 'data[0].key')"
Something went wrong. Please contact UploadThing and provide the following cause:"TypeError: undefined is not an object (evaluating 'data[0].key')"
Router Config:
f({ pdf: { maxFileCount: 1, maxFileSize: '512KB' } }).onUploadComplete(async ({ file }) => file)
f({ pdf: { maxFileCount: 1, maxFileSize: '512KB' } }).onUploadComplete(async ({ file }) => file)
I've scoured the docs and still can't find any indiciations about why.
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server