javascript - Get count of selected files in dropzone -


what m trying count of selected files in dropzone before upload them.

var count= mydropzonenst.getacceptedfiles().length; 

i can count of uploaded files using line, m trying count of selected valid files before upload them.

var count= mydropzonenst.files.length; 

will give total number of files in dropzone.