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 URL #181

Closed
marathonfail opened this issue Jul 1, 2016 · 2 comments
Closed

IPFS URL #181

marathonfail opened this issue Jul 1, 2016 · 2 comments

Comments

@marathonfail
Copy link

marathonfail commented Jul 1, 2016

What are the best practices to use IPFS URL?

Should we rely on the IPFS URL like below to be available always, or should we use our own way to construct the URL and store just the hash of the file and access the file through our own server using the IPFS API.

https://ipfs.io/ipfs/QmburSK2Cjav26X6oGsiXwwwDXnVUUjm9i65UErRD99Z9v

After working on this for a few times, I feel IPFS is just GREAT!!! I am really feeling like this will be the future of the web storage. Great work so far. It is just mind blowing seeing this work instantly.

Thanks,
Sridhar

@Kubuxu
Copy link
Member

Kubuxu commented Jul 1, 2016

@sridhar87 I opended a question under our FAQ, where we will try to formulate exhaustive answer for it.

In short terms:

  • IPFS data is designed to be linked in canonical path (without schema) but support for it is not yet in browsers. In case of storage and internal representation I would use this format: /ipfs/QmburSK2Cjav26X6oGsiXwwwDXnVUUjm9i65UErRD99Z9v
  • In browsers and other applications that use URL currently we decided to support few schemas but mainly fs and web+fs (the second one is to allow support of chrome).
    Links under those schemas do not have authority section so they look like this: fs:/ipfs/QmburSK2Cjav26X6oGsiXwwwDXnVUUjm9i65UErRD99Z9v (notice single slash after schema). There are browser addons that support this schema already. As not all browsers support it I am thinking of writing small piece of JS that would rewrite it to public gateway if it is not supported by browser. I would also encourge to show users just fs: part but have underlying link to be web+fs: until we figure out how to make chrome handle just fs:.

Please follow up your question in our FAQ section ipfs-inactive/faq#142

@marathonfail
Copy link
Author

marathonfail commented Jul 1, 2016

@Kubuxu I thank you for opening a FAQ and also for answering my question.

We would start storing the hashes prepended with /ipfs/ Yeah, a javascript to rewrite the URL would be great too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants