Non-Multiple file selection is not enforced
Currently, when multiple: false
which is the default, the only thing affected is the multiple
attribute on the <input type="file">
element that prevents the file selector from selecting more than one file. However, it is still possible to select more files, just one at a time.
I need to enforce the multiple: false
attribute in the dropzone as well so that only a single file can ever be selected. This entails the following:
- When dragging multiple files, only the first is used.
- Once a single file is selected/dropped, disable the dropzone/click to select.