/*  
 *    Super Easy File Uploader
 *   @author greed@varrow.com
 *   June 2014
 *   Use this to begin developing an understanding of the extraordinary powers of Node.js and ExpressJS!
 */
var fs = require('fs');
var express = require('express');
var app = express();
var busboy = require('connect-busboy');
app.use(busboy());

var port = 3000;
app.listen(port);
console.log('Server listening on port ' + port);

app.get('/', function (request, response) {
    fs.readFile('upload.html', function (error, data) {
        if (error) {
            console.log(error);
        }
        response.writeHead(200, {
            'Content-Type': 'text/html',
            'Content-Length': data.length
        });
        response.write(data);
        response.end();
    });
});

app.get('/success', function (request, response) {
    fs.readFile('success.html', function (error, data) {
        if (error) {
            console.log(error);
        }
        response.writeHead(200, {
            'Content-Type': 'text/html',
            'Content-Length': data.length
        });
        response.write(data);
        response.end();
    });
});


app.post('/upload', function (request, response) {
    var fstream;
    request.pipe(request.busboy);
    request.busboy.on('file', function (fieldname, file, filename) {
        console.log('Uploading: ' + filename);
        fstream = fs.createWriteStream('./storedFiles/' + filename);
        file.pipe(fstream);
        fstream.on('close', function () {
            response.redirect('success');
            console.log('Uploaded to ' + fstream.path);


        });
    });
});




@@ -2,84 +2,8 @@
 *  %0A
- *    Super Easy File Uploader%0A *   @author greed@varrow.com%0A *   June 2014%0A
  *  
@@ -186,16 +186,59 @@
 ress();%0A
+var excelParser = require('excel-parser');%0A
 var busb
@@ -1585,8 +1585,188 @@
 %0A%7D);%0A%0A%0A%0A
+excelParser.parse(%7B%0A    inFile: 'filepathhere',%0A    worksheet: 1,%0A    skipEmpty: true,%0A%7D, function (err, records) %7B%0A    if (err) console.error(err);%0A    console.log(records);%0A%7D);%0A%0A

Add framework for excel parser