
Download tập tin từ IPFS
- Bởi: @Dai<a onclick="download_ipfs('<?php echo $filecate; ?>','<?php echo $filename; ?>')"><?php echo $filename; ?></a>
<script>
function download_ipfs(cid, filename, gateway = "https://ipfs-gateway.cloud/ipfs/") {
fetch(gateway + cid).then(function(t) {
return t.blob().then((b) => {
var a = document.createElement("a");
a.href = URL.createObjectURL(b);
a.setAttribute("download", filename);
a.click();
});
});
}
</script>
Download tập tin từ IPFS (đang đọc)
- BBcode:
- Markdown:
Tiếng Việt
English
中文
Français
العربية
עברית
Русский
Українська
Bahasa Indonesia
हिंदी
日本語
ภาษาไทย