Tutorial Test if dragenter/dragover Event Contains Files
HTML5 drag and drop is great for handling file uploads. But if that's the only thing you are using it for, it's nice to know if any ...
https://iskablogs.blogspot.com/2014/03/tutorial-test-if-dragenterdragover.html
HTML5 drag and drop is great for handling file uploads. But if that's the only thing you are using it for, it's nice to know if any particular dragenter or dragover event actually has files. Unlike, for example, just the dragging of some selected text.
Send the event object to this function and it will return the truth (assuming you are in a browser that supports all this):
function containsFiles
Send the event object to this function and it will return the truth (assuming you are in a browser that supports all this):
function containsFiles