Open NelsonFrancisco opened 5 years ago
Ignore this.
I was registering koa-body middleware two times in the route I was testing.
Apparently, registering first with json:true and the second time with json:true and multipart: true makes koa-body never to resolve bodyPromise
So, I still didn't revolve my issue. Is koa-body middleware compatible with two instances in the same route? Because I want to make an API in which I have some routes that allow multipart, and others that don't.
Problem/Feature Request Summary
Multipart form and json body in the same request
Environment Information
Current Behavior
Request pends forever
Steps to Reproduce
Expected Behavior
It should parse json body correctly.
Context (Environment)
I'm trying to provide an API PATCH route that allows both multipart form(for uploading images) and json body, to change the properties on a database entity.