Topic: How do I get the number of files selected for upload?

The user needs to upload a specific number of files.

How do I count selected files (not uploaded yet) so I can give that number to a js method, which would then warn user if it needs to upload additional files, say on pressing the "Start upload" button?

Re: How do I get the number of files selected for upload?

FilesAdded event receives array of selected files, you can use its length property to get the number.

If you want to see your issue fixed, do not report it here, do it on - GitHub.

Re: How do I get the number of files selected for upload?

This might be what you're looking for. When the user clicks the start-upload link, you can check the file length that Davit mentioned.

document.getElementById('start-upload').onclick = function () {
        if (uploader.files.length < 5) {
document.getElementById('console').innerHTML = 'You need to add 5 files before you can start uploading';
            return false; 
        }
        else{
            uploader.start();
        }
    };