上传一个音频,一个字符串后台是这样接收的var storage = multer.memoryStorage();var upload = multer({ storage: storage });router.post('/upload', upload.fields([{ name: 'file', maxCount: 1 }, {name:'ss', maxCount: 1 }]), function(req, res, next){ console.log(req.files); }然后控制台打印出来的是这样的{ file: [ { fieldname: 'file', originalname: 'high20170705.mp3', encoding: '7bit', mimetype: 'audio/mp3', buffer: <Buffer 49 44 33 03 00 00 00 01 52 41 54 59 45 52 00 00 00 06 00 00 00 32 30 31 37 00 54 44 41 54 00 00 00 06 00 00 00 32 33 30 35 00 54 49 4d 45 00 00 00 06 ... >, size: 170948 } ] }我想问,那个name为ss的信息去哪了?
添加回答
举报
0/150
提交
取消