Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

html for example

  • Loading branch information...
commit 7b13854f51fbb0552c357f25df4d00dc5e32cef1 1 parent 57b830d
@tj tj authored
Showing with 5 additions and 1 deletion.
  1. +0 −1  examples/bodyParser.js
  2. +5 −0 examples/public/form.html
View
1  examples/bodyParser.js
@@ -8,7 +8,6 @@ var app = connect()
.use(connect.static(__dirname + '/public'))
.use(connect.bodyParser())
.use(function(req, res, next){
- console.log(req.method);
if ('GET' != req.method) return next();
res.statusCode = 302;
res.setHeader('Location', 'form.html');
View
5 examples/public/form.html
@@ -0,0 +1,5 @@
+<form action="/" method="post" enctype="multipart/form-data">
+ <input type="text" name="name" placeholder="Name:" />
+ <input type="file" name="images" multiple="multiple" />
+ <input type="submit" value="Upload" />
+</form>
Please sign in to comment.
Something went wrong with that request. Please try again.