Open 0xsonu opened 1 year ago
https://github.com/joschan21/breadit/blob/60cf197005033ecd26a06998fa3fd0686d02061f/src/components/Editor.tsx#L108
instead of this we can use below code to solve image uplaoding problems.
const [res] = await uploadFiles({ endpoint: 'imageUploader', files: [file], })
I tried you solution but, i founded with the same problem, so i looking within the documentation of uploadthing and this worked for me.
const res = await uploadFiles('imageUploader',{files: [file]})
https://github.com/joschan21/breadit/blob/60cf197005033ecd26a06998fa3fd0686d02061f/src/components/Editor.tsx#L108
instead of this we can use below code to solve image uplaoding problems.