It’s working fine, it’s just a bug with the console.
function onDrop(event) {
event.preventDefault();
console.log(event.dataTransfer.files[0]);
}
It’s working fine, it’s just a bug with the console.
function onDrop(event) {
event.preventDefault();
console.log(event.dataTransfer.files[0]);
}