dButton.disabled = true;
      buttonText.textContent = 'Uploading...';
      uploadIcon.classList.add('hidden');
      loadingIcon.classList.remove('hidden');

      const uploadId = 'upload-' + Math.random().toString(36).substr(2);
      totalChunks = Math.ceil(file.size / CHUNK_SIZE);
      currentChunk = 0;

      // Update initial stats
      totalBytes.textContent = formatBytes(file.size);
      chunkInfo.textContent = `0 / ${totalChunks}`;
      
      // Reset progress display
      progressBar.styl