From cfc02b546887b9d369829964be34adf6cf0d0555 Mon Sep 17 00:00:00 2001 From: Renato Rosa Date: Wed, 19 Aug 2026 21:46:25 -0300 Subject: [PATCH] Atualizar web/chat.js --- web/chat.js | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/web/chat.js b/web/chat.js index c216675..2311029 100644 --- a/web/chat.js +++ b/web/chat.js @@ -40,6 +40,18 @@ async function pollTask(taskId) { }, 1500); } +async function importExcel() { + const file = document.getElementById("excelFile").files[0]; + const form = new FormData(); + form.append("file", file); + + await fetch(`/api/import_excel/${conversationId}`, { + method: "POST", + body: form + }); + + await loadHistory(); +}