Open JaimeStill opened 6 years ago
I know the version of koa used in the examples differs from the version I'm using following along with the examples (2.2.0 vs. 2.5.2), but wanted to raise a fundamental difference in the ctx object for extracting files from the request:
koa
2.2.0
2.5.2
ctx
app.js in the examples has the following:
app.js
const files = ctx.request.body.files || {};
In version 2.5.2, this has to be set as follows:
const files = ctx.request.files || {};
Pretty sure it's a difference between versions, but figured I'd raise the issue in the event that someone else has troubles.
@JaimeStill thank you! Koa Team, pls update DOCS
PR welcome @gustvao
I know the version of
koa
used in the examples differs from the version I'm using following along with the examples (2.2.0
vs.2.5.2
), but wanted to raise a fundamental difference in thectx
object for extracting files from the request:app.js
in the examples has the following:In version
2.5.2
, this has to be set as follows:Pretty sure it's a difference between versions, but figured I'd raise the issue in the event that someone else has troubles.