Revert "Support form-data arrays"

This commit is contained in:
Nick O'Leary
2023-09-05 09:41:48 +01:00
committed by GitHub
parent cc5533c183
commit 46b15a51d4
2 changed files with 0 additions and 38 deletions

View File

@@ -435,10 +435,6 @@ in your Node-RED user directory (${RED.settings.userDir}).
formData.append(opt, val);
} else if (typeof val === 'object' && val.hasOwnProperty('value')) {
formData.append(opt,val.value,val.options || {});
} else if (Array.isArray(val)) {
for (var i=0; i<val.length; i++) {
formData.append(opt, val[i])
}
} else {
formData.append(opt,JSON.stringify(val));
}