How to get the file name for <input type="file" in jsp
- by deepthinker121
I want to read the file path from html input type="file"
(the entry selected in the file dialog by the user)
<script>
function OpenFileDialog(form) {
var a = document.getElementById("inputfile").click();
SampleForm.filePath.value = //set the path here
document.SampleForm.submit();
}
</script>
…