ipfs-desktop icon indicating copy to clipboard operation
ipfs-desktop copied to clipboard

support downloading dag-cbor nodes as CAR files

Open yusefnapora opened this issue 2 years ago • 4 comments

I'm writing up some docs for nft.storage about how to make a local copy of your NFTs that could potentially be re-provided to the network (as a hedge against link rot, basically).

I was hoping to use IPFS Desktop for the examples, but it doesn't seem to like the dag-cbor nodes that nft.storage uses as its top-level "container" node.

When I try using the menu bar's "Download" command, I get this:

Screen Shot 2022-01-25 at 4 14 06 PM

And pasting it into the main search box on the desktop interface gives me

Screen Shot 2022-01-25 at 3 59 12 PM

If I click through to the IPLD explorer I can see the json representation and links to the NFT assets:

Screen Shot 2022-01-25 at 4 18 04 PM

But sadly I'm not able to download or pin the entire thing, which is what I was hoping to do.

Solution wise, it seems like what I really want is broader support for dag-cbor in Desktop / web ui, but that sounds like a big nest of features and potential features that will take planning and so on 😄.

I think a good short term solution would be to have a "Download as CAR" option on the "This is not a file or directory" screen in addition to the link to IPLD explorer. Clicking the 🚗 button could call out to ipfs dag export and save a .CAR file.

yusefnapora avatar Jan 25 '22 21:01 yusefnapora

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

  • "Priority" labels will show how urgent this is for the team.
  • "Status" labels will show if this is ready to be worked on, blocked, or in progress.
  • "Need" labels will indicate if additional input or analysis is required.

Finally, remember to use https://discuss.ipfs.io if you just need general support.

welcome[bot] avatar Jan 25 '22 21:01 welcome[bot]

cc @dchoi27 - this is what I was mentioning earlier about NFT backups with IPFS Desktop.

yusefnapora avatar Jan 25 '22 21:01 yusefnapora

We have wip PRs in ipfs-webui

  • CAR import https://github.com/ipfs/ipfs-webui/pull/1838
  • CAR export https://github.com/ipfs/ipfs-webui/pull/1837

afaik it is blocked by the need to update to the latest ipfs-http-client (https://github.com/ipfs/ipfs-webui/pull/1840)

lidel avatar Feb 25 '22 02:02 lidel

Related Gateway feature – /ipfs/{cid}?format=car – is being implemented in https://github.com/ipfs/go-ipfs/pull/8758

lidel avatar Mar 04 '22 18:03 lidel