drag and drop images

This commit is contained in:
Kyle
2021-02-15 16:58:08 -08:00
parent a20ebbf857
commit 225a0a2379
2 changed files with 30 additions and 10 deletions

View File

@@ -62,7 +62,7 @@ function dropDrop(e) {
e.stopPropagation();
e.target.closest('.drop-area').classList.remove('hover');
destination = window[e.target.closest('.drop-area').children[1].getAttribute('data-dropFunction')];
otherParams = window[e.target.closest('.drop-area').children[1].getAttribute('data-otherParams')];
otherParams = e.target.closest('.drop-area').children[1].getAttribute('data-otherParams');
uploadFiles(e.dataTransfer.files, destination, otherParams);
}
async function uploadFiles(filesRaw, destination, otherParams) {