Open Dmytro-Tihunov opened 8 months ago
Did you solve this problem?
Did you solve this problem?
Just install formidable and use it without this plugin ) everything works
Would be nice to know if you used the global middleware when you got this issue
got the same issue and yes it was with the middleware
What if you ditch the middleware and just do it to certain routes like:
// /server/api/upload.ts
import { readFiles } from 'h3-formidable'
export default eventHandler(async (event) => {
const { fields, files, form } = await readFiles(event, {
// formidable options
// https://github.com/node-formidable/formidable#options
})
})
Environment: Nuxt v3.7.4
A few days ago, I was struggling with a problem in my app. All post requests using useFetch or $fetch with a body stopped working. It seems to be a bug. Tried on 2 different environments. Problem solved after uninstalling the h3-formidable