We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cfe3d83 commit 2ca8f2cCopy full SHA for 2ca8f2c
lib/incoming_form.js
@@ -84,7 +84,7 @@ IncomingForm.prototype.parse = function(req, cb) {
84
var fields = {}, files = {};
85
this
86
.on('field', function(name, value) {
87
- if (name.slice(-2) === '[]') {
+ if (this.multiples && name.slice(-2) === '[]') {
88
var realName = name.slice(0, name.length - 2);
89
if (realName in fields) {
90
if (!Array.isArray(fields[realName])) {
0 commit comments