How to use jQuery’s drop event to upload files dragged from the desktop?
It’s a little messy (you need to handle at least 3 events) but possible. First, you need to add eventhandlers for dragover and dragenter and prevent the default actions for these events like that: $(‘#div’).on( ‘dragover’, function(e) { e.preventDefault(); e.stopPropagation(); } ) $(‘#div’).on( ‘dragenter’, function(e) { e.preventDefault(); e.stopPropagation(); } ) It’s actually important to call … Read more