From 20e1e0dcb89caed5256dfb20f4442ec16b1398bb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Tue, 23 Jun 2026 08:10:38 +0400 Subject: [PATCH] =?UTF-8?q?v1.0.121:=20fix=20ZIP=20=E2=80=94=20hex-encode?= =?UTF-8?q?=20file=20content=20for=20PostgreSQL=20bytea?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- deploy/convert_server.py | 5 +++-- index.cfm | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/deploy/convert_server.py b/deploy/convert_server.py index a2c0e0c..24d01c5 100755 --- a/deploy/convert_server.py +++ b/deploy/convert_server.py @@ -317,10 +317,11 @@ class Handler(BaseHTTPRequestHandler): if ext not in ('docx', 'doc', 'pdf'): continue - # Загрузить в Lucee + # Загрузить в Lucee (hex с \x префиксом для PostgreSQL bytea) + content_hex = "\\x" + content.hex() resp = httpx.post( f"{LUCEE_URL}/upload.cfm", - data={"filename": name, "data": content}, + data={"filename": name, "data": content_hex}, timeout=30 ) if resp.status_code == 200: diff --git a/index.cfm b/index.cfm index 14aef6f..66f65ec 100644 --- a/index.cfm +++ b/index.cfm @@ -75,7 +75,7 @@
Nubes - Сверка договоров — LLM AI-driven Event Sourcing v1.0.120 — Lucee + Сверка договоров — LLM AI-driven Event Sourcing v1.0.121 — Lucee