-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug with form arrays and bodyParser #1025
Comments
Hi! The If you are making a urlencoded POST, test out the replacement middleware https://github.com/expressjs/body-parser and if that doesn't work to your liking, please file a bug there. |
seems like treating it like an object is the best answer then no? |
Perhaps. I actually checked it out and the parsing (in |
Here is the issue you'll want to argue in, it looks like: tj/node-querystring#77 |
Nope, looks like someone already submitted a PR to |
I submitted a 2nd PR tj/node-querystring#98 that is a more simple change, and should make it basically work the same as php does |
Thanks for the update! I'll keep a watch on that PR. If it gets accepted and a new release of |
I just found a wierd bug when using bodyParser and form arrays.
I have a form element that looks like:
etc.
When these submit, I get an array from bodyParser that looks like:
rather than:
If instead I change the form to look like:
it works great (except now I need to replace id_)
Seems like it should either work like php, and treat it like an object, or else it should be an array which would do:
One way or the other it's definitely wrong right now
The text was updated successfully, but these errors were encountered: