question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Is incomingForm config 'multiples' necessary?

See original GitHub issue

I think multiples=true is the correct behavior and multiples = false incorrect when I upload multiple files in an input tag because of incorrect info in parsed files object.

I don’t think user have to set multiples. The parsed files object should always give right info, either depending on user upload or always use an array for a named input.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
GrosSacASaccommented, May 4, 2021

npm i node-formidable/formidable#3.x

1reaction
tunnckoCorecommented, Jan 7, 2021

@VictorJozwicki yes, not yet. It’s easy option and there’re bigger problems, haha.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Do stuff with multiple files when uploading them using node ...
The handler: var form = new formidable.IncomingForm(), files = [], fields = []; form.uploadDir = ...
Read more >
Uploading Files using Formidable in a Node.js Application
But if we are uploading some kind of files, we need to specify the enctype attribute ... Basic Configuration form.multiples = true; form....
Read more >
Formidable - npm
There are multiple variants to do this, but Formidable just need ... const form = new IncomingForm(options); // or const { Formidable } ......
Read more >
Set form matching - Dynamics 365 Marketing - Microsoft Learn
These will be selected by default each time a user creates a new marketing form, but users can then customize the setting as...
Read more >
formidable.IncomingForm.parse JavaScript and Node.js code ...
IncomingForm.parse(Showing top 15 results out of 576) ... form.multiples = false; form.parse(req, function (err, fields, data) { if (err) { err.type ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found