Answers for "read fileupload from nodejs"

2

read a file nodejs

const fs = require('fs');

fs.readFile('my-file.txt', 'utf8', function(err, data) {
    if (err) throw err;
    console.log(data);
});
Posted by: Guest on April-17-2021
0

Upload files in node

npm install --save multer
Posted by: Guest on July-09-2021

Code answers related to "Javascript"

Browse Popular Code Answers by Language