upload the file according to a koa2 written in the online tutorial and install the koa-body. Postman is used for testing, but an error is reported. The console shows that ctx.request.body.files is undefined
ctx.request.body{}
ctx.request
.
upload the file according to a koa2 written in the online tutorial and install the koa-body. Postman is used for testing, but an error is reported. The console shows that ctx.request.body.files is undefined
ctx.request.body{}
ctx.request
.
has solved the problem of
app.use (koaBody ());
replacing
app.use (koaBody ({multipart:true}));
with
, but I app.use (koaBody ({multipart:true})); is still not good, ask God for advice