SyntaxFix
Write A Post
Hire A Developer
Questions
To check whether the input file is empty or not by using the file length property, index should be specified like the following:
index
var vidFileLength = $("#videoUploadFile")[0].files.length; if(vidFileLength === 0){ alert("No file selected."); }