【问题标题】:How to upload multiple images in node js using the formidable module如何使用强大的模块在node js中上传多张图片
【发布时间】:2019-03-28 13:47:24
【问题描述】:

我正在做一个处理文件上传的项目,已经能够在我的数据库中上传单个图像,但现在我想使用强大的节点 js 模块上传多个图像

【问题讨论】:

    标签: node.js express formidable multiple-file-upload


    【解决方案1】:

    我假设您指的是:https://github.com/felixge/node-formidable?

    如果是这样,在他们的自述文件中,他们有以下配置:

    form.multiples = false;
    
    If this option is enabled, when you call form.parse, the files argument will contain arrays of files for inputs which submit multiple files using the HTML5 multiple attribute.
    

    req.files 将是一个文件/图像数组。

    【讨论】:

      猜你喜欢
      • 2016-06-11
      • 1970-01-01
      • 2020-09-27
      • 2022-01-20
      • 1970-01-01
      • 1970-01-01
      • 2019-11-24
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多