if( event.target == 'css selector' ){
}
'use strict'
var fs = require('fs');
var express = require('express');
var cors = require('cors');
var app = express();
app.use(cors());
app.post('/', function (req, res) {
var data = [];
req.on('data', function (chank) {
data = Buffer.concat(chank);
}).on('end', function () {
fs.writeFile('file1.jpg', data, function (err) {
if (err) console.log(err.message);
});
res.send('http://localhost:8000/file1.jpg');
});
});
app.listen(8000);