Sir Squeechub
Sir Squeechub
TTCTheo's Typesafe Cult
Created by Sir Squeechub on 11/15/2024 in #questions
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.
1 replies