我在我的koa项目中发布了一个formData。当我打印ctx.request时,我得到了以下内容
'content-type': 'multipart/form-data; boundary=----WebKitFormBoundary5AThNwq75QDUwSIA','content-length': '517840'但是,当我打印ctx.request.body时,为什么会得到{}
发布于 2017-11-09 02:39:27
您将需要使用一些中间件,例如koa-body (但有很多替代方案)。
https://stackoverflow.com/questions/47171054
复制相似问题