MCPcopy Create free account
hub / github.com/dajie111/nodeseek-userscript / niHandleDialogFileDrop

Function niHandleDialogFileDrop

nodeImage.js:2284–2294  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

2282 }
2283 }
2284 function niHandleDialogFileDrop(e) {
2285 if (!niDataTransferHasFiles(e.dataTransfer)) return;
2286 e.preventDefault();
2287 e.stopPropagation();
2288 upLabel.style.borderColor = '#cbd5e1';
2289 var dt = e.dataTransfer;
2290 if (!dt || !dt.files || !dt.files.length) return;
2291 var arr = [];
2292 for (var d = 0; d < dt.files.length; d++) arr.push(dt.files[d]);
2293 runUploadBatch(arr);
2294 }
2295 el.addEventListener(
2296 'dragover',
2297 function (e) {

Callers

nothing calls this directly

Calls 2

niDataTransferHasFilesFunction · 0.85
runUploadBatchFunction · 0.85

Tested by

no test coverage detected