e-item";
            div.innerHTML = `<strong>${file.name}</strong><div class="progress-bar"><div id="bar-${index}" class="progress-bar-inner"></div></div>`;
            fileList.appendChild(div);
        });
    }

    let uploadResponses = [];
    let filesUploaded = 0;

    function uploadFiles() {
        const pwd = sessionStorage.getItem("pwd");

        const uploadBtn = document.getElementById("upload-btn");
        uploadBtn.disabled = true;
        uploadBtn.textContent = "‰∏ä‰º†‰∏�