What is IPFS?
The Interplanetary File system (IPFS) is a distributed file storage protocol that allow computers all over the globe to store and serve files as part of a giant peer-to-peer network.
What is Pinning?
Pinning is a mechanism that allows you to tell IPFS to store and keep a given object somewhere - the default being you local node, though in this case you will be pinning the object to Fleek’s IPFS node.
How to pin a file
This service requires you to be authenticated & with a project selected.
You can pin a file from your file system by using the
fleek ipfs add <file-direction>
fleek ipfs add hello.txt > Success! QmNTCRYiZbtzDGEYtsTKwwtDVQF1XgvebudpRzcXVf5dYM > You can visit through the gateway: https://ipfs.io/ipfs/QmNTCRYiZbtzDGEYtsTKwwtDVQF1XgvebudpRzcXVf5dYM
How to view/resolve a file?
With the files' IPFS hash at hand (e.g.
Qmanou5uhcGhyW7noyB7LNFJBZkKcuUZnmpHeQSaidJ367), you can view or resolve your file by using any public or private IPFS gateway.
For example, using IPFS' public gateway by appending the hash in the appropiate section: https://ipfs.io/ipfs/Qmanou5uhcGhyW7noyB7LNFJBZkKcuUZnmpHeQSaidJ367(opens in a new tab) (opens in a new tab).
Public IPFS gateways (list here)(opens in a new tab) (opens in a new tab) take a little time to replicate new content, so there could be a minor delay in your file being fetchable by these gateways.