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); });