test if file exists and not empty in jquery code example
Example: how to check if file upload is empty jquery
if( document.getElementById("videoUploadFile").files.length == 0 ){
console.log("no files selected");
}
if( document.getElementById("videoUploadFile").files.length == 0 ){
console.log("no files selected");
}