mirror of
https://github.com/axios/axios.git
synced 2026-04-12 02:31:57 +08:00
14 lines
231 B
JavaScript
14 lines
231 B
JavaScript
module.exports = function (req, res) {
|
|
var data = '';
|
|
|
|
req.on('data', function (chunk) {
|
|
data += chunk;
|
|
});
|
|
|
|
req.on('end', function () {
|
|
console.log('File uploaded');
|
|
res.writeHead(200);
|
|
res.end();
|
|
});
|
|
};
|