I have the following code ...
<div class="u-drop-container js-drop-container">
...
$(document).ready(function () {
$(".js-drop-container").on("drop", function (e) {
e.stopPropagation()
e.preventDefault();
var dt = e.dataTransfer;
console.log(dt);
});
});
I am simply trying to capture the file information when it is dropped onto the page handled by CefSharp (WPF). Drop is enabled in CefSharp code.
At this point, all that occurs is the "browser" attempts to open the file, rather than passing the information to be handled via JavaScript.
Any ideas on how to handle this would be appreciated.
Bob