I'm trying to use the example i found in #851 , but seems broken.
The body var is still empty, and i have a lot of multipart fields in my request.
Anyone knows how to solve it?
/**
* Create/save a new invoice.
* POST invoices
*/
async store ({ params, request, response, auth }) {
var body = {}
request.multipart.field((name, value) => {
console.log(name)
console.log(value)
body[name] = value
})
console.log(request.body)
console.log(body)
}
This is what you are missing

How did you find about request.multipart.field() by yourself? it is not mentioned in the documentation @un-versed
I wonder why await request.multipart.process() works only POST but not in PATCH ?
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Most helpful comment
This is what you are missing