@samara
To limit the upload files in Dropzone.js, you can use the "maxFiles" option.
Here is an example code that limits the upload files to only 3:
1 2 3 |
Dropzone.options.myDropzone = { maxFiles: 3, }; |
You can place this code inside your Dropzone initialization script to apply the limit. The "maxFiles" option specifies how many files are allowed to be uploaded.