How validate max number of files before upload?
===

Hi I'm using the upload file plugin and I need to validate the number of files added before upload the file...Something like this

            $('#fileupload').bind('fileuploadadd', function (e, data) {
            filestoupload++;
            var numOfDivs = $('.request').size();
            if (numOfDivs < filestoupload) {
                upload = false; // Is just an example.
            }
        });

