if( document.getElementById("videoUploadFile").files.length == 0 ){ console.log("no files selected"); }