From 0f69e725a5cb342ec3f8cfdb2c62e8ba18e15885 Mon Sep 17 00:00:00 2001 From: Claus Lohmar Date: Wed, 22 Jul 2026 09:16:12 +0000 Subject: [PATCH] debug: add progress/loadstart console.logs --- frontend/templates/index.html | 2 ++ 1 file changed, 2 insertions(+) diff --git a/frontend/templates/index.html b/frontend/templates/index.html index 131b0b5..004df90 100644 --- a/frontend/templates/index.html +++ b/frontend/templates/index.html @@ -152,6 +152,7 @@ async function handleUpload(formData) { xhr.setRequestHeader('X-VM-Name', vmName); xhr.upload.addEventListener('progress', (e) => { + console.log('progress', e.loaded, '/', e.total, 'computable:', e.lengthComputable); if (e.lengthComputable) { const pct = Math.round((e.loaded / e.total) * 100); setPhase('Uploading source file... ' + (e.loaded / (1024**3)).toFixed(1) + ' GiB', pct, false); @@ -162,6 +163,7 @@ async function handleUpload(formData) { }); xhr.addEventListener('loadstart', () => { + console.log('loadstart'); setPhase('Uploading source file...', 0, true); });