I changed the processor on complete event to use res.render instead of view.render
processor.on('complete', function(data) {
res.render('upload', {jadeVar:data.text_pages});
next();
}); //on processor.complete
I guess this is an issue of the variable scope and view is not defined?
I found this out by looking at keystone/lib/view.js