How to determine if user selected a file for file upload? February 28, 2023 by Tarik This works in IE (and FF, I believe): if(document.getElementById("uploadBox").value != "") { // you have a file }