Skip to content
Browse files

Add missing err parameter to docs

  • Loading branch information...
1 parent 857559e commit f92b1dbb70879d2df2c3b809e41ce1dde6961b38 @felixge felixge committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 Readme.md
View
2 Readme.md
@@ -43,7 +43,7 @@ Parse an incoming file upload.
if (req.url == '/upload' && req.method.toLowerCase() == 'post') {
// parse a file upload
var form = new formidable.IncomingForm();
- form.parse(req, function(fields, files) {
+ form.parse(req, function(err, fields, files) {
res.writeHead(200, {'content-type': 'text/plain'});
res.write('received upload:\n\n');
res.end(sys.inspect({fields: fields, files: files}));

0 comments on commit f92b1db

Please sign in to comment.
Something went wrong with that request. Please try again.