Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dropzone opens multiple file select windows

Tags:

dropzone.js

I want to limit Dropzone to just select one file when you click the specified dropzone area, but I can't find any parameters to do that. Right now, when I select a file and hit Open, Dropzone immediately pops up the open file dialog again without clicking, which I do not want.

Anyone run into this? I tried setting MaxFiles=1, but it didn't work.

like image 601
Kal_Torak Avatar asked Jan 30 '26 13:01

Kal_Torak


1 Answers

It attempts to place this event after declaring the JS of the dropzone.

<script type="text/javascript">
    Dropzone.autoDiscover = false;
</script>
like image 70
Cold Head Skillet Avatar answered Feb 02 '26 08:02

Cold Head Skillet