mirror of
https://github.com/tenrok/axios.git
synced 2026-06-17 19:21:29 +03:00
Improving examples
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
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();
|
||||
});
|
||||
};
|
||||
Reference in New Issue
Block a user