2

Am working on a project that deals with file upload, have been able to upload single image in my database, but now i want to upload multiple images using the formidable node js module

1 Answer 1

3

I assume you are referring to: https://github.com/felixge/node-formidable?

If so, in their README they have the following config:

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.

The req.files will then be an array of files/images.

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.