Skip to content

Instantly share code, notes, and snippets.

@atsuya
Created November 30, 2011 07:26
Show Gist options
  • Save atsuya/1408334 to your computer and use it in GitHub Desktop.
Save atsuya/1408334 to your computer and use it in GitHub Desktop.
server: parsing multipart/form-data using connect 1.8
req.body.images.forEach(function(image){
var kb = image.size / 1024 | 0;
res.write('<li>uploaded ' + image.name + ' ' + kb + 'kb</li>');
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment