v1.0.119: fix ZIP — use absolute UNZIP_URL (was relative path → 404)
This commit is contained in:
@@ -75,7 +75,7 @@
|
|||||||
<body>
|
<body>
|
||||||
<div class="topbar">
|
<div class="topbar">
|
||||||
<img src="/nubes-logo.svg" alt="Nubes">
|
<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.118 — Lucee</span></span>
|
<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>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
@@ -176,6 +176,7 @@ lucide.createIcons();
|
|||||||
|
|
||||||
var UPLOAD_URL = 'https://contracts.kube5s.ru/lucee/upload.cfm';
|
var UPLOAD_URL = 'https://contracts.kube5s.ru/lucee/upload.cfm';
|
||||||
var CONVERT_URL = 'https://contracts.kube5s.ru/convert-doc';
|
var CONVERT_URL = 'https://contracts.kube5s.ru/convert-doc';
|
||||||
|
var UNZIP_URL = 'https://contracts.kube5s.ru/unzip-upload';
|
||||||
var SITE_URL = ''; // same origin for api calls
|
var SITE_URL = ''; // same origin for api calls
|
||||||
|
|
||||||
var fileInput = document.getElementById('fileInput');
|
var fileInput = document.getElementById('fileInput');
|
||||||
@@ -258,7 +259,7 @@ fileInput.addEventListener('change', async function() {
|
|||||||
renderTable();
|
renderTable();
|
||||||
|
|
||||||
try {
|
try {
|
||||||
var zipResp = await fetch('/unzip-upload', {
|
var zipResp = await fetch(UNZIP_URL, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: f,
|
body: f,
|
||||||
headers: {'Content-Type': 'application/zip'}
|
headers: {'Content-Type': 'application/zip'}
|
||||||
|
|||||||
Reference in New Issue
Block a user