ngx-dropzone
ngx-dropzone copied to clipboard
ngx-dropzone property [multiple] is not working
Hi,
the property [multiple]="false" is not working,
the code:

the result:

Angular CLI: 13.3.7 Node: 16.15.0 Package Manager: npm 7.5.6 OS: win32 x64 "ngx-dropzone": "^3.1.0"
Hey there, please show the code of your onSelect method.
Hi,
sure, here is my onSelect method.

I took it from the readme.md of the repository
Sorry, I accidentally closed the problem...
Setting the multiple property to false only limits the number of files per drop/selection to 1. If you always only want to show a single file, you have to implement this in your onSelect method.
In your case, you simply push all files to the this.files array and render them in the component, which will of course stack up to more than one file.