I built a file upload allowing drag-n-drop.
I can detect when a file is being dragged over the draggable element, my problem is:
is it possible once i detect a file being dragged over the element – if its 1 file or multiple files?
(i want to allow single file uploads only – without allowing the user to drop multiple files).
Thanks a lot for the help,
Good day.
If you’ve used jQuery to register the
drophandler then the detail is in theev.originalEventproperty:However this won’t be available until the files are actually dropped – the
dragenterevent doesn’t populate that property.