susee:log
This commit is contained in:
parent
5cdefc41ce
commit
896ff69c40
@ -219,7 +219,7 @@
|
||||
<%= data[i].file[j] %>
|
||||
</li>
|
||||
<button type="button" id="<%= data[i].file[j]+'|'+data[i].folder %>" class="btn btn-danger delete">Delete</button>
|
||||
<a onclick="downloadImage('<%= data[i].img[j] %>')">Download link</a>
|
||||
<a onclick="downloadImage('<%= data[i].img[j] %>' , '<%= data[i].file[j] %>')">Download link</a>
|
||||
</ul>
|
||||
</div>
|
||||
<% } %>
|
||||
@ -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();
|
||||
}
|
||||
</script>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user