Ipfs-webui: Content added via ipfs add command isnt listed in the Files page.

Created on 5 Dec 2018  路  4Comments  路  Source: ipfs/ipfs-webui

hi everyone,
i have two questions. First, when i finish adding files from CLI , files can not be seen on webui.
Similarity, when adding files from webui, it can not be seen on CLI using "ipfs pin ls" command.

Second, when i delete file from webui, it just disappear from webui screen and I check .ipfs/blocks repository, file is still there.

Thank for help.

exexpert

Most helpful comment

Sorry for the confusion, this is a known issue, that we need to do a better job of visualising.

The Web UI is currently visualising your local filesystem view of your IPFS repo, which you interact with via the ipfs files commands. If you

$ ipfs files cp /ipfs/QmeoTsSvQvNtKxhHdPA3gy6RWD6ghVwdkjBeUWWPiHdmn6 /hello.txt

a file from an ipfs cid to a path in your local repo, it will show up in the files view on the web ui.

If you ls the root of your IPFS files view, you can see things that are in there

$ ipfs files ls /
hello.txt

ipfs add will chunk the file, add the blocks to the blockstore, and tell you the CID for the file, and pin it, but it won't create an alias for it in your filesystem view of your IPFS repo (internally refered to as the MFS, or mutable file system), so it won't show up in the files view in web ui. We have plans to show both the MFS and the rest of the repo, but it's not implemented yet. There is a UX challange around showing a long list of CIDs that exist in your repo that haven't been aliased to a file-system like view with useful names, but it's currently super suprising that you don't get to see things that you added, so it's a challenge we have to tackle.

All 4 comments

Sorry for the confusion, this is a known issue, that we need to do a better job of visualising.

The Web UI is currently visualising your local filesystem view of your IPFS repo, which you interact with via the ipfs files commands. If you

$ ipfs files cp /ipfs/QmeoTsSvQvNtKxhHdPA3gy6RWD6ghVwdkjBeUWWPiHdmn6 /hello.txt

a file from an ipfs cid to a path in your local repo, it will show up in the files view on the web ui.

If you ls the root of your IPFS files view, you can see things that are in there

$ ipfs files ls /
hello.txt

ipfs add will chunk the file, add the blocks to the blockstore, and tell you the CID for the file, and pin it, but it won't create an alias for it in your filesystem view of your IPFS repo (internally refered to as the MFS, or mutable file system), so it won't show up in the files view in web ui. We have plans to show both the MFS and the rest of the repo, but it's not implemented yet. There is a UX challange around showing a long list of CIDs that exist in your repo that haven't been aliased to a file-system like view with useful names, but it's currently super suprising that you don't get to see things that you added, so it's a challenge we have to tackle.

Thanks for your clearly reply and your work. i'm interested in ipfs somehow and hopefully i can contribute something like you and let more people to know it and use it to do something meaningful to let world better.~~

Isn't a reasonable thing to concatenate ipfs files cp * * with ipfs add by default?

Isn't a reasonable thing to concatenate ipfs files cp * * with ipfs add by default?

My exact thought... Why not turn ipfs add into a wrapper for ipfs files? Does add command add anything beyond what files already does?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lidel picture lidel  路  6Comments

TitaniumCoder477 picture TitaniumCoder477  路  5Comments

RubenKelevra picture RubenKelevra  路  3Comments

olizilla picture olizilla  路  5Comments

olizilla picture olizilla  路  4Comments