Skip to content

Commit

Permalink
note about formidable
Browse files Browse the repository at this point in the history
  • Loading branch information
tj committed Dec 2, 2011
1 parent 5dc4474 commit 23f6bd7
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions lib/middleware/bodyParser.js
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -54,13 +54,23 @@ function mime(req) {
* size limits, etc. For example you may wish to retain the file extension * size limits, etc. For example you may wish to retain the file extension
* and change the upload directory: * and change the upload directory:
* *
* server.use(bodyParser({ * server.use(bodyParser({
* keepExtensions: true * keepExtensions: true
* , uploadDir: '/www/mysite.com/uploads' * , uploadDir: '/www/mysite.com/uploads'
* })); * }));
* *
* View https://github.com/felixge/node-formidable for more information. * View https://github.com/felixge/node-formidable for more information.
* *
* If you wish to use formidable directly within your app, and do not
* desire this behaviour for multipart requests simply remove the
* parser:
*
* delete connect.bodyParser.parse['multipart/form-data'];
*
* Or
*
* delete express.bodyParser.parse['multipart/form-data'];
*
* @param {Object} options * @param {Object} options
* @return {Function} * @return {Function}
* @api public * @api public
Expand Down

0 comments on commit 23f6bd7

Please sign in to comment.