Permalink
Browse files

note about formidable

  • Loading branch information...
1 parent 5dc4474 commit 23f6bd79dde5a7d27ca13841028dfabd8e1a1fa7 @tj tj committed Dec 2, 2011
Showing with 14 additions and 4 deletions.
  1. +14 −4 lib/middleware/bodyParser.js
@@ -54,13 +54,23 @@ function mime(req) {
* size limits, etc. For example you may wish to retain the file extension
* and change the upload directory:
*
- * server.use(bodyParser({
- * keepExtensions: true
- * , uploadDir: '/www/mysite.com/uploads'
- * }));
+ * server.use(bodyParser({
+ * keepExtensions: true
+ * , uploadDir: '/www/mysite.com/uploads'
+ * }));
*
* 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
* @return {Function}
* @api public

0 comments on commit 23f6bd7

Please sign in to comment.