From 350d452a7b1b3d4dd2515fa6fa8b1e8562601dc4 Mon Sep 17 00:00:00 2001 From: RustamRu Date: Mon, 3 Mar 2025 20:13:51 +0300 Subject: [PATCH] fix file convert to base64 --- server/routers/dry-wash/order.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/routers/dry-wash/order.js b/server/routers/dry-wash/order.js index 8244900..6832117 100644 --- a/server/routers/dry-wash/order.js +++ b/server/routers/dry-wash/order.js @@ -387,7 +387,7 @@ const analyzeImage = async (fileId, token) => { const convertFileToBase64 = (file) => { const base64Image = file.buffer.toString('base64') - return base64Image + return `data:${file.mimetype};base64,${base64Image}` } process.env["NODE_TLS_REJECT_UNAUTHORIZED"] = "0"