Most middleware (like multipart) is no longer bundled with Express and must be installed separately....https://github.com/senchalabs/connect#middleware
版本问题
首先需要安装:
npm install --save connect-multiparty
把
app.use(express.multipart());
替换为
app.use(require('connect-multiparty')());
时间: 2024-10-28 09:27:35