v1.0.121: fix ZIP — hex-encode file content for PostgreSQL bytea
This commit is contained in:
@@ -317,10 +317,11 @@ class Handler(BaseHTTPRequestHandler):
|
|||||||
if ext not in ('docx', 'doc', 'pdf'):
|
if ext not in ('docx', 'doc', 'pdf'):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
# Загрузить в Lucee
|
# Загрузить в Lucee (hex с \x префиксом для PostgreSQL bytea)
|
||||||
|
content_hex = "\\x" + content.hex()
|
||||||
resp = httpx.post(
|
resp = httpx.post(
|
||||||
f"{LUCEE_URL}/upload.cfm",
|
f"{LUCEE_URL}/upload.cfm",
|
||||||
data={"filename": name, "data": content},
|
data={"filename": name, "data": content_hex},
|
||||||
timeout=30
|
timeout=30
|
||||||
)
|
)
|
||||||
if resp.status_code == 200:
|
if resp.status_code == 200:
|
||||||
|
|||||||
@@ -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.120 — Lucee</span></span>
|
<span class="title">Сверка договоров — LLM AI-driven Event Sourcing <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.0.121 — Lucee</span></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
|
|||||||
Reference in New Issue
Block a user