From 6c685a5175a69201965adfd3c31bd5ce6a5e64dd Mon Sep 17 00:00:00 2001
From: suseendhiran17 <58357088+suseendhiran17@users.noreply.github.com>
Date: Wed, 19 Jul 2023 16:38:18 +0530
Subject: [PATCH] susee:log
---
app/views/module.ejs | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/app/views/module.ejs b/app/views/module.ejs
index 0c2c6f4..8f72c19 100644
--- a/app/views/module.ejs
+++ b/app/views/module.ejs
@@ -219,7 +219,7 @@
<%= data[i].file[j] %>
- Download link
+ Download link
<% } %>
@@ -324,12 +324,12 @@ $(".delete").click(function(){
});
});
-function downloadImage(data)
+function downloadImage(data,fileName)
{
const base64Image = data; // Replace this with your actual Base64 image data
const downloadLink = document.createElement('a');
downloadLink.href = base64Image;
- downloadLink.download = 'log.txt'; // Replace with the desired file name and extension
+ downloadLink.download = fileName; // Replace with the desired file name and extension
downloadLink.click();
}