v1.0.120: fix ZIP — use FormData on client, parse multipart on VM

This commit is contained in:
2026-06-23 08:09:05 +04:00
parent 5c6fe0da00
commit b20ec58aff
2 changed files with 26 additions and 5 deletions
+2 -3
View File
@@ -75,7 +75,7 @@
<body>
<div class="topbar">
<img src="/nubes-logo.svg" alt="Nubes">
<span class="title">Сверка договоров — LLM AI-driven Event Sourcing <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.119 — Lucee</span></span>
<span class="title">Сверка договоров — LLM AI-driven Event Sourcing <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.120 — Lucee</span></span>
</div>
<div class="content">
@@ -261,8 +261,7 @@ fileInput.addEventListener('change', async function() {
try {
var zipResp = await fetch(UNZIP_URL, {
method: 'POST',
body: f,
headers: {'Content-Type': 'application/zip'}
body: (function() { var fd = new FormData(); fd.append('file', f); return fd; })()
});
var zipData = await zipResp.json();
if (!zipData.ok || !zipData.files) throw new Error('unzip failed');