Created
November 30, 2011 07:26
-
-
Save atsuya/1408334 to your computer and use it in GitHub Desktop.
server: parsing multipart/form-data using connect 1.8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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