fix: add id to download button

This commit is contained in:
Safwan Samsudeen 2026-02-20 16:08:46 +05:30
parent cdb50bde65
commit 57578c8b9e

View file

@ -90,7 +90,7 @@ frappe.ui.form.on("File", {
},
download: function (frm) {
let file_url = frm.doc.file_url;
let file_url = frm.doc.file_url + "?fid=" + frm.doc.name;
if (frm.doc.file_name) {
file_url = file_url.replace(/#/g, "%23");
}