MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / handleFileForm

Function handleFileForm

webUi/scripts.js:471–481  ·  view source on GitHub ↗
(files, folder)

Source from the content-addressed store, hash-verified

469let activeUploads = 0;
470const maxConcurrentUploads = 3;
471function handleFileForm(files, folder) {
472 uploadIdx = 0;
473 writeSendForm();
474 fileQueue = Array.from(files);
475 totalFiles = fileQueue.length;
476 completedFiles = 0;
477 activeUploads = 0;
478 for (let i = 0; i < maxConcurrentUploads; i++) {
479 processNextUpload(folder);
480 }
481}
482function processNextUpload(folder) {
483 if (fileQueue.length === 0) {
484 if (activeUploads === 0) {

Callers 2

listFilesButtonFunction · 0.85
dropFunction · 0.85

Calls 2

writeSendFormFunction · 0.85
processNextUploadFunction · 0.85

Tested by

no test coverage detected