I\'m using Dropzone.js to upload files to the server. I setting up my Dropzone maxFiles parameter to 10 and I was tried this:
Dropzone.js
maxFiles
$(\'.
Why do not you just use CSS to disable the click event. When max files is reached, Dropzone will automatically add a class of dz-max-files-reached.
dz-max-files-reached
Use css to disable click on dropzone:
.dz-max-files-reached { pointer-events: none; cursor: default; }