Skip to content

Commit

Permalink
Merge pull request #129 from zachary95/patch-1
Browse files Browse the repository at this point in the history
Update to koa-body's latest syntax to access files in multipart example
  • Loading branch information
hemanth authored Jan 20, 2019
2 parents 7378561 + fc66d70 commit 104b9f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion multipart/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ app.use(async function(ctx) {
// make the temporary directory
await fs.mkdir(tmpdir);
const filePaths = [];
const files = ctx.request.body.files || {};
const files = ctx.request.files || {};

for (let key in files) {
const file = files[key];
Expand Down

0 comments on commit 104b9f7

Please sign in to comment.