maxNumberOfFiles seems to limit the total number of files that can be selected
See original GitHub issueWhen I set maxNumberOfFiles: 1
and select a file via the FileInput
plugin, in version 0.24.2 I was able to select another file after that (in a new dialog). However, when I upgraded to 0.24.4 the Informer
plugin tells me that I cannot select more than 1 file.
Is this the intended behaviour? The maxNumberOfFiles
option is described as “the number of files user is able to select via the system file dialog in UI plugins like DragDrop, FileInput and Dashboard”. Does this mean “at once” or “in total”?
It would be great if there was a way to make the <input type="file">
from FileInput
input plugin accept only 1 file (i.e. multiple
is not specified), but allow re-selecting it. In my application the newly uploaded file would replace the previous file.
Issue Analytics
- State:
- Created 5 years ago
- Comments:12 (4 by maintainers)
This is a problem for me too, with FileInput plugin. I only want one file at a time, but after choosing one file, I want user to be able to change their mind and choose a different one.
I can handle all that logic myself in JS – I just want to be able to have FileInput launch an OS file modal that only allows selection of one file; but later be able to do that a second and subsequent times on the same page.
posted a workaround in #1575 that’s been working well for me