使用强大时如何获取类型文件的值名称数组?

How to get value name array for type file when use formidable?

<input type="file" class="smart-file" name="images[]" data-btn-class="btn-primary" data-field-type="bootstrap-file-filed" multiple>

`router.post('/introcpn',函数(req,res){ var form = new formidable.IncomingForm(); form.parse(req, function (err, fields, file) { 如果(错误)抛出错误;`` console.log(file.images) }) })

`

您必须在 node_module/formidable/incoming_form.js 中手动添加代码:

https://github.com/node-formidable/formidable/pull/380/files

大师中没有这个。它将允许您获取值名称数组