felixge/node-formidable — Issue #116: Connect multipart issue
Author: thevinci
Created: 2011-12-24 00:51:09+00:00
State: open

I tried the suggestion at connect.io side by deleting multipart/form-data and formidable is still not working at all.

I placed this in my app.js:
```javascript
delete express.bodyParser.parse['multipart/form-data']
```

This is my controller
```coffeescript
formidable = require 'formidable'
form = new formidable.IncomingForm()
console.log form
form
.on('error', (err) ->
log.info 'ERROR', err
return)
.on('file', (field, file) ->
log.info 'FILE UPLOADED', file
return)
.on('end', () ->
log.info 'ALL DONE'
return)
form.parse req
```

I tried everything and formidable won't trigger at all. This is what I get when I console out form:
```javascript
{ error: null,
ended: false,
maxFieldsSize: 2097152,
keepExtensions: false,
uploadDir: '/tmp',
encoding: 'utf-8',
headers: null,
type: null,
bytesReceived: null,
bytesExpected: null,
_parser: null,
_flushing: 0,
_fieldsSize: 0 }
```