Depending on the use case, how do I constrain the number of files that dropzone.js will allow?
For example, I might need to only allow 1, 2, or 4 files uploaded.
Alternative solution that worked really well for me:
init: function() { this.on("addedfile", function(event) { while (this.files.length > this.options.maxFiles) { this.removeFile(this.files[0]); } }); }