Created
August 4, 2012 19:01
-
-
Save cjblomqvist/3259336 to your computer and use it in GitHub Desktop.
This file contains 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
form.onPart = function(part) { | |
if (!part.filename) { | |
// let formidable handle all non-file parts | |
incomingForm.handlePart(part); | |
return false; | |
} | |
client.putStream(part, part.filename, {'Content-Length': form.bytesExpected, 'Content-Type': part.mime}, function() { | |
console.log('uploaded?'); | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment