I would like to drag a file from my computer to my app, and then save its name and its full path.
But I can only retrieve its name and not the full path. How can I do this?
This is the beginning of what I did:
dropZone.addEventListener('drop', function (e) {
var data = event.dataTransfer.items;
for (var i = 0; i < data.length; i += 1) {
var f = data[i].getAsFile();
var name = f.name;
}
}
Thank U.