Open DonRubiczek opened 5 months ago
Will this be possible in future versions?
pickFiles()
has a passed parameter, multiple
. All you need to do is to set it to false
.
Yes, but you are talking about using function to open dialog and pick files, i am talking about dropping multiple files to dropzone. There is no such parameter as multiple in DropzoneView. Is it possible to somehow configure DropzoneView to accept only single files?
Oh, I see. Basically, the plugin does nothing itself, it just uses the drag-and-drop provided by the browser. And it looks like that doesn't have a setting to restrict it. But we have both onDrop
and onDropMultiple
. Do you only use the first?
Actually, as I check now, you could only use onDropMultiple
always, even if it sounds counter-intuitive. And only use the first item from the list, even if there are more than one.
Is it possible to disable multiple file selection?