0

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

`router.post('/introcpn',function(req,res){ var form = new formidable.IncomingForm(); form.parse(req, function (err, fields, file) { if(err) throw err;`` console.log(file.images) }) })

`

1 Answer 1

1

You have to add the code manually in node_module/formidable/incoming_form.js :

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

This one is not in the master. It will allow you to get value name array

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.