Skip to content

Instantly share code, notes, and snippets.

@cjblomqvist
Created August 4, 2012 19:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cjblomqvist/3259336 to your computer and use it in GitHub Desktop.
Save cjblomqvist/3259336 to your computer and use it in GitHub Desktop.
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