Skip to content

Commit

Permalink
fix: set multer dest config
Browse files Browse the repository at this point in the history
  • Loading branch information
AxiosLeo committed Jun 14, 2024
1 parent fbafbba commit c1acdcc
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/apps/koa.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,9 @@ class KoaApplication extends Application {
}, this.koa));
}

['a', 'b', 'c'].forEach((item, index) => {
index;
const upload = multer({
dest: config.static.rootDir
});

const upload = multer();
this.koa.use(upload.any());

// body parser
Expand Down

0 comments on commit c1acdcc

Please sign in to comment.