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

"ipfs add" and "ipfs files write" the difference between the two #6159

Closed
VKingi opened this issue Apr 1, 2019 · 3 comments
Closed

"ipfs add" and "ipfs files write" the difference between the two #6159

VKingi opened this issue Apr 1, 2019 · 3 comments
Labels
kind/support A question or request for support

Comments

@VKingi
Copy link

VKingi commented Apr 1, 2019

  1. When I use commands:
 ipfs add test.mp4

hash value: QmS2sz7WNaVMDbbuBdzLVNVXwtWsNyNs3S4KjFaYY87aAV

  1. When I use commands:
cat test.mp4 | ipfs files write --create /test/test.mp4

hash value: QmazXU4S74VbLjqLouNMuJhKnWp5XKnyp7qqLnRmD3WLgu

Obviously the two hash values are different,But when I used "ipfs get $hashValue" to download the files, I found they were identical

My question:

  1. Why are they different?
  2. Why are there two ways to add files, and the difference between them?

All these problems have been bothering me, but I still haven't found the result. Please help me, thanks.

@Stebalien Stebalien added the kind/support A question or request for support label Apr 1, 2019
@Stebalien
Copy link
Member

Stebalien commented Apr 1, 2019

I'd be happy to answer your question on discuss.ipfs.io or on the #ipfs freenode IRC channel (you can flag me down by mentioning "@Stebalien").

@VKingi
Copy link
Author

VKingi commented Apr 2, 2019

Is it because I'm not good at English that you don't understand me?

@Stebalien
Copy link
Member

Stebalien commented Apr 3, 2019

It's just our policy to keep the noise down on this issue tracker.

🔥If you have a QUESTION about IPFS, please ask on our forum at https://discuss.ipfs.io 🔥

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/support A question or request for support
Projects
None yet
Development

No branches or pull requests

2 participants