Link PDF files as links in metakgp wiki (using IPFS)

From Metakgp Wiki
Jump to navigation Jump to search

Introduction - Why IPFS[edit | edit source]

Sometimes, users might required to add PDF files in a wiki article. But files generally consume a lot of space on the server. Hence, a simpler solution would be to upload the PDF somewhere and put its reference link in the article. General solution might be to upload a PDF in one's cloud storage accounts like Google Drive or Dropbox. But there are chances that in future the link to the file may be broken due to reasons like user's account getting banned or user deleting the file accidentally. So, it is necessary to have a place, where the PDF is uploaded permanently, and link is valid forever.

IPFS[1] solves our problems here. IPFS is a peer to peer file storage system. A file uploaded in IPFS cannot be deleted[2]. So, the link in the article will never be broken. This article follows a step by step guide on how to upload a file using IPFS and access it using a link, which can be put in the wiki article.

Step by Step guide[edit | edit source]

  1. Visit the site -
  2. Click on CHOOSE FILES button and upload the file
  3. Click on the Upload at the bottom of the page, as shown here
  4. On the Right hand side, in a grey background text area, you can see a JSON with key names - path, hash, size.
  5. Copy the hash value to the clip board, as shown here.
  6. The file can be viewed at the URL , as show here
  7. You can reference the above link in the wiki article.
  8. Not Just PDF files, you can also upload images, videos too.

Further Reading[edit | edit source]

  1. IPFS Powers the Distributed Web
  2. Can I delete my content from the network? - Help -