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/uploadthing@6.4.0_next@14.1.0_tailwindcss@3.4.1/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)
Was this page helpful?