e.width = "0%";
      progressPercent.textContent = "0%";
      uploadedBytes.textContent = "0 Bytes";

      const es = new EventSource(`/progress/${clientId}`);
      es.addEventListener("upload-progress", (e) => {
        try {
          const progressData = JSON.parse(e.data);
          const percentage = progressData.percentage || 0;
          const uploaded = progressData.uploadedBytes || 0;
          
          progressBar.style.width = percentage + "%";
          progressPercent.textContent = percen