Dumidu Madushanka Dumidu Madushanka - 3 years ago 115
Javascript Question

Get count of selected files in dropzone

What I m trying to do is get a count of selected files in dropzone before upload them.

var count= myDropzoneNST.getAcceptedFiles().length;


I can get a count of uploaded files using this line, but What I m trying to do is to get count of selected valid files before upload them.

Answer Source
var count= myDropzoneNST.files.length;

will give you the total number of files in your dropzone.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download