From 7f6c84883ea12be8f0765f94e6e03c4fd8f9cedc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=80=9CNaeel=E2=80=9D?= Date: Sun, 21 Jun 2026 15:56:03 +0400 Subject: [PATCH] =?UTF-8?q?v1.0.87:=20=D1=83=D0=B4=D0=B0=D0=BB=D0=B5=D0=BD?= =?UTF-8?q?=D0=B8=D0=B5=20=D0=B4=D1=83=D0=B1=D0=BB=D0=B8=D0=BA=D0=B0=D1=82?= =?UTF-8?q?=D0=BE=D0=B2=20=D0=B2=20multipart=20=D0=BF=D1=83=D1=82=D0=B8=20?= =?UTF-8?q?=D0=B7=D0=B0=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- upload.cfm | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/upload.cfm b/upload.cfm index 9730cef..7a5a93e 100644 --- a/upload.cfm +++ b/upload.cfm @@ -143,6 +143,18 @@ + + + SELECT s.id as sid, s.document_id FROM supplements s + JOIN documents d ON d.id = s.document_id + WHERE s.contract_id = + AND d.filename = + + + DELETE FROM supplements WHERE id = + DELETE FROM documents WHERE id = + + INSERT INTO documents (filename, mime_type, original_bytes, status) VALUES (,,,'uploaded')