Skip to content

DropArea

NickWare edited this page Dec 27, 2021 · 1 revision

Use the DropArea element to drag and drop files and process them.

HTML model:

<div class="Box DropArea" data-dropname="DA1">
    Box body
</div>

JS:

facefull.DropAreas["DA1"].onFilesCaptured = function(files) {
    // files is a JS FileList
    console.log("Files dropped and captured", files);
}

Clone this wiki locally