项目中,上传图片是通过 stream,上传excel是通过 file 接收的

config.multipart = {
  // fileSize: '50mb',  // 文件大小
  fileModeMatch: /^(\/tools\/excel\/import)$/, // '/tools/excel/import'接口使用file模式,其他使用stream模式
  fileExtensions: ['.xlsx', '.xls'],
}

.

相关文章:

  • 2022-02-11
  • 2021-04-19
  • 2022-12-23
  • 2021-06-24
  • 2021-08-24
  • 2021-12-12
猜你喜欢
  • 2021-11-13
  • 2022-12-23
  • 2021-10-31
  • 2022-03-07
  • 2021-09-16
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案