Error uploading files from Nextjs server action
HI Team,
in the latest version, "customId " is introduced, in my usecase i am just trying to pass a defaulr File[] via UTApi, but i am getting below error , is there i am missing or is there any fix need to be done from the uploadting perspective,
Error :
../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/uploadthing/server/index.js (850:15) @ eval
blog:dev: ⨯ TypeError: Cannot use 'in' operator to search for 'customId' in [object FileList]
blog:dev: at Array.map
I am passing the files as below
let fd = new FormData()
fd.set('files', e.target.files as any)
uploadFile(fd)
0 Replies