base64 как TEXT (без декодирования), original_b64 колонка, v1.24
This commit is contained in:
@@ -59,7 +59,7 @@
|
||||
<body>
|
||||
<div class="topbar">
|
||||
<img src="{{ url_for('static', filename='nubes-logo.svg') }}" alt="Nubes">
|
||||
<span class="title">Сверка договоров <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.23</span></span>
|
||||
<span class="title">Сверка договоров <span style="font-weight:400;color:var(--muted);font-size:12px;">v1.24</span></span>
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
@@ -205,6 +205,13 @@
|
||||
data: b64,
|
||||
cid: cid || null
|
||||
}));
|
||||
// ВРЕМЕННО: через /test (работает)
|
||||
/*
|
||||
xhr.open('POST', '/test');
|
||||
xhr.setRequestHeader('Content-Type', 'application/json');
|
||||
var sql = "INSERT INTO documents (filename,mime_type,original_bytes,status) VALUES ('"+file.name+"','application/octet-stream',decode('"+b64+"','base64'),'uploaded')";
|
||||
xhr.send(JSON.stringify({action:'exec',sql:sql}));
|
||||
*/
|
||||
}).catch(reject);
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user