so I have this app that reads a file uploaded from the client (index.html) I want to get the file that was uploaded on html and user it on my app.js to read it. How do I do that. Here goes the files bellow:
index.html
<input type="file" id="myFile" name="filename">
<input type="submit">
app.js
var fs = require('fs');
var readMe = fs.readFileSync(??? , 'utf8');
console.log(readMe);
This should return you the full path of the selected file:
var readMe = fs.readFileSync(document.getElementById("myFile").value , 'utf8');