Uploadthing error "An error occured while parsing input/output" when I try to upload with Insomnia
Hello,
This is the error I get:
This is my
This is my
This is the error I get:
This is my
fastify:This is my
Uploadthing:
{
"message": "An error occured while parsing input/output"
}fastifyUploadthingserver.register(fastifyMultipart)
server.register(createRouteHandler, {
router: uploadRouter
})import { createUploadthing, type FileRouter } from 'uploadthing/fastify'
const f = createUploadthing()
export const uploadRouter = {
imageUploader: f({
image: {
maxFileSize: '4MB',
maxFileCount: 4
}
}).onUploadComplete((data) => {
console.log('upload completed', data)
})
} satisfies FileRouter
export type OurFileRouter = typeof uploadRouter