<html>
<body>
Select a file to upload:
<input type="file" id="myFile" size="50">
<p>Click the button below do the display the file path of the file upload button above (you must select a file first).</p>
<button type="button" onclick="myFunction()">Try it</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.getElementById("myFile").value;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_fileupload_value by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:17:17 GMT -->
</html>