constructor(event: DragEvent)
View sourceCopies the browser event’s file list into path.
Class
Captures the files supplied by a browser file-drop event.
path references DragEvent.dataTransfer.files. When the event has no
data transfer or file list, the value is an empty FileList.
const drop = new FileDrop(event)
for (const file of drop.path) console.log(file.name)Files copied from dataTransfer.files, or an empty FileList when the
browser event does not provide a data transfer or files.