I'm using Plupload to upload files to my website. I'm trying to limit the number of files that can be selected before uploading. I tried setting multi_selection
to false
which partially works. However, if you click on 'Select files' and choose a file via the file explorer, wait for the file explorer to close, then click on 'Select files' and do the same again, you are able to select multiple files.
How can I allow just one file to be selected before uploading?
Here is a demo of the code I'm using: http://jsfiddle.net/5j8c05j9/