This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const saveImgTemp = function (req, res, next) { | |
| const writeStream = fs.createWriteStream( | |
| path.join(__dirname, "../store/test.png") | |
| ); | |
| req.pipe(writeStream); | |
| // After all the data is saved, respond with a simple html form so they can post more data | |
| req.on('end', function () { | |
| res.send({msg: "Works"}) | |
| }); |
OlderNewer