Answers for "input type file check if empty jquery"

1

how to check if file upload is empty jquery

if( document.getElementById("videoUploadFile").files.length == 0 ){
    console.log("no files selected");
}
Posted by: Guest on April-02-2021
1

How to check if input file is empty in jQuery

if ($('#videoUploadFile').get(0).files.length === 0) {
    console.log("No files selected.");
}
Posted by: Guest on May-01-2021

Code answers related to "input type file check if empty jquery"

Browse Popular Code Answers by Language