Closed manuel-di-iorio closed 9 years ago
try adding form.multiples = true;
before form.parse
Ok now works, sorry the problem was xhr.setRequestHeader("content-type", "application/x-www-form-urlencoded");
I have Formidable as dependance in my project, compliments for the good work!
Just glad to hear you got it working :smile:
Thanks a lot.
If you test this code on your server, you will see on the node.js console that the "field" and "value" outputs a long text that includes the unparsed --webkit-boundary, etc..
Test case:
index.html
formidable js code in my server
The output on the console should be:
Instead, the output is:
This situation does not happens if you doesn't use form data, e.g. directly putting the data in xhr.send() instead of formData