felixge/node-formidable — Issue #125: Parser error when uploading a file without an input name
Author: brianewing
Created: 2012-01-15 19:53:18+00:00
State: open

Using 1.0.8 through connect's bodyParser, I get "Error: parser error, 40 of 44 bytes parsed" when sending a file upload without a field name. Whilst the file input should have a name, apps shouldn't crash due to one not being sent.

Traceback:
```
Error: parser error, 40 of 44 bytes parsed
at IncomingForm.write (my_project/node_modules/express/node_modules/connect/node_modules/formidable/lib/incoming_form.js:141:17)
at IncomingMessage. (my_project/node_modules/express/node_modules/connect/node_modules/formidable/lib/incoming_form.js:91:12)
at IncomingMessage.emit (events.js:67:17)
at HTTPParser.onBody (http.js:115:23)
at Socket.ondata (http.js:1374:22)
at TCP.onread (net.js:336:27)
```