diff --git a/index.cfm b/index.cfm
index 9add834..1e8f83b 100644
--- a/index.cfm
+++ b/index.cfm
@@ -75,7 +75,7 @@

-
Сверка договоров — LLM AI-driven Event Sourcing v1.0.126 — Lucee
+
Сверка договоров — LLM AI-driven Event Sourcing v1.0.127 — Lucee
@@ -259,12 +259,17 @@ fileInput.addEventListener('change', async function() {
renderTable();
try {
- var zipResp = await fetch(UNZIP_URL, {
- method: 'POST',
- body: f,
- headers: {'Content-Type': 'application/zip'}
+ var zipResp = await new Promise(function(resolve, reject) {
+ var xhr = new XMLHttpRequest();
+ xhr.open('POST', UNZIP_URL);
+ xhr.responseType = 'json';
+ xhr.onload = function() { resolve(xhr.response); };
+ xhr.onerror = function() { reject(new Error('Сеть')); };
+ xhr.ontimeout = function() { reject(new Error('Таймаут')); };
+ xhr.timeout = 60000;
+ xhr.send(f);
});
- var zipData = await zipResp.json();
+ var zipData = zipResp;
if (!zipData.ok || !zipData.files) throw new Error('unzip failed');
// Убрать строку ZIP из таблицы