I have configured an Upload control as an Async Single File (multiple = false) upload as shown below. When I drag-n-drop multiple files (e.g., three files) into the drop zone, one of the files is uploaded. Which of the files gets uploaded seems a bit random. It's confusing to the users that they can drop multiple files and only one gets uploaded.
I thought I could could check the event parameter passed into the Upload or Success events to see if e.files length is greater than one and if it is, do a e.preventDefault() and display a warning message. However, the e.files contains only one of the files that were dropped (e.g., I drop three files and the e.files.length is one). How do I determine if multiple files were dropped?
.Async(async => async.Save("Save", "Upload").AutoUpload(true))
.Events(events => events.Error("onError").Success("onSuccess").Upload("onUpload").Select("onSelect")))