Closed smcmurray closed 7 years ago
same issue when POST by postman in form-data
It seems that the only supported formType in koa-bodyparser is application/x-www-form-urlencoded FormData uses multipart/form-data
multipart is much more complex, it is hard to handle automatically, you can use co-busboy or co-multipart to process multipar body.
Whenever I have my browser fetch('...', {method: 'POST', body: \<FormData>}), koa-bodyparser fails to parse it.
* \<FormData> is an instance of FormData