Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
modified app.js
  • Loading branch information
Tea-mates committed Aug 28, 2011
1 parent 1648bb8 commit 5e9d72a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app.js
Expand Up @@ -14,7 +14,7 @@ normalizer = require('./lib/normalize').Normalizer;

var app = module.exports = express.createServer(
form({ keepExtensions: true })
);
), io = require('socket.io').listen(app);

// Configuration
app.configure(function(){
Expand Down Expand Up @@ -99,6 +99,7 @@ logger.debug("cmd:" + cmd)
});

req.form.on('progress', function(bytesReceived, bytesExpected){

var percent = (bytesReceived / bytesExpected * 100) | 0;
process.stdout.write('Uploading: %' + percent + '\r');
});
Expand Down

0 comments on commit 5e9d72a

Please sign in to comment.