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();
}