I have a simple html form with a single file upload input. (jsfiddle)
In the past, I have accessed the file selected by the user using input.files, howe
input.files
Try the below code
var file = $("#fileInput").get(0).files[0]; alert(file);
Thanks