Skip to content

Instantly share code, notes, and snippets.

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?');
});
expressApp.post('/', function( req, res, next ) {
var
model = req.getModel();
model.fetch(
store.query('people').login(req.body),
function( err, scoped_user ) {
var
ready(function(model) {
app.on('render', function(ctx) {
// Do your FB and Google+ init here - read more about it (the render event) here: https://github.com/codeparty/derby/commit/bbc33f8b03b7df5c8c070e93ac387971b79b3a98 (first init) and here: https://github.com/codeparty/derby/commit/a1376e57fee148ef3677d5a2aef02626b32ccbc8 (update and more specifics of how it can be used) as well as the History.md for 0.3.11: https://github.com/codeparty/derby/blob/master/History.md
});
});