一、看看效果

// req的部分打印效果
             ...
             ...
[Symbol(kCapture)]: false,
  [Symbol(kHeaders)]: {
    'user-agent': 'PostmanRuntime/7.34.0',
    accept: '*/*',
    'postman-token': '7f3b3764-511e-413e-a94e-203a11b78f96',
    host: 'localhost:3000',
    'accept-encoding': 'gzip, deflate, br',
    connection: 'keep-alive',
    'content-type': 'multipart/form-data; boundary=--------------------------811539231727078071352189',
    'content-length': '84714'
  },
  [Symbol(kHeadersCount)]: 16,
  [Symbol(kTrailers)]: null,
  [Symbol(kTrailersCount)]: 0,
  [Symbol(RequestTimeout)]: undefined
} 

// req.files 的输出
req.files undefined

二、原因

三、解决

哥们儿,你懂的!!!

Logo

北京人形旗下天工造物具身智能开源社区,聚焦具身天工与慧思开物两大平台

更多推荐