diff --git a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx index 4e64e613..6407a9f5 100644 --- a/src/front/Components/Layouts/Folder/FolderInformation/index.tsx +++ b/src/front/Components/Layouts/Folder/FolderInformation/index.tsx @@ -277,7 +277,16 @@ class FolderInformationClass extends BasePage { if (anchor.transactions[0].status !== "VERIFIED_ON_CHAIN") return; try { - await OfficeFolderAnchors.getInstance().download(uid); + const file: Blob = await OfficeFolderAnchors.getInstance().download(uid); + const url = window.URL.createObjectURL(file); + const a = document.createElement("a"); + a.style.display = "none"; + a.href = url; + // the filename you want + a.download = "anchoring_proof.pdf"; + document.body.appendChild(a); + a.click(); + window.URL.revokeObjectURL(url); } catch (e) { console.error(e); }