Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is that one super-powerful ipfs.addAll be possible? #9301

Open
tx0c opened this issue Sep 22, 2022 · 1 comment
Open

is that one super-powerful ipfs.addAll be possible? #9301

tx0c opened this issue Sep 22, 2022 · 1 comment
Labels
exp/intermediate Prior experience is likely helpful P2 Medium: Good to have, but can wait until someone steps up

Comments

@tx0c
Copy link

tx0c commented Sep 22, 2022

is that one super-powerful ipfs.addAll be possible?

be able to add new files into the IPFS system, also add links to existing objects (with CID)

this is Javascript API, but need go-ipfs server side support first;

ipfs.addAll([
  { path: 'author-blog/index.html', content: 'top index content', },
  { path: 'author-blog/rss.xml', content: 'the updated top level rss', },
  { path: 'author-blog/new-post/index.html', content: 'the new blog post', },
  { path: 'author-blog/new-post/pic1.png', content: 'the new blog post's assets', },
  { path: 'author-blog/new-post/pic2.jpeg', content: 'the new blog post's assets', },

  // ... and can ipfs.addAll support add existing CIDs?
  { path: 'author-blog/previous-post', link: CID.parse('another-existing-cid-from-previous-publication') },
  { path: 'author-blog/previous-post2', link: CID.parse('more-existing-cids') },
  ...
])

Originally posted by @tx0c in #9294 (comment)

@tx0c tx0c changed the title is that one super-powerful be possible? is that one super-powerful ipfs.addAll be possible? Sep 22, 2022
@tx0c
Copy link
Author

tx0c commented Sep 22, 2022

current alternative is:

  1. ipfs.addAll add all local files first,
  2. then call ipfs object patch add-link; (this is at least available)
  3. or wait 'ipfs dag patch' #4782 ipfs dag patch ... which was opened in 2018 but not sure for how long can be ready?

@guseggert guseggert added P2 Medium: Good to have, but can wait until someone steps up exp/intermediate Prior experience is likely helpful labels Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
exp/intermediate Prior experience is likely helpful P2 Medium: Good to have, but can wait until someone steps up
Projects
None yet
Development

No branches or pull requests

2 participants