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

Allow that content may be something other than a UnixFS file #67

Open
cdata opened this issue Jul 13, 2023 · 0 comments
Open

Allow that content may be something other than a UnixFS file #67

cdata opened this issue Jul 13, 2023 · 0 comments

Comments

@cdata
Copy link

cdata commented Jul 13, 2023

Currently the spec requires that content be a Cid<IpfsUnixFsFile>. However, it isn't very clearly spelled out why it must be this format (though one can speculate about various IPFS ecosystem compatibility/coherence virtues).

Noting the availability of a metadata field, it should be possible to include a header to signal:

  • The content is a UnixFS file, or..
  • The content is something other than a UnixFS file.

By observing the metadata, a renderer of the file system can decide what it does or does not wish to render (based on support or other criteria).

Would it be possible to carve out an allowance for non-UnixFS files in the spec, or else perhaps shore up the requirement for UnixFS files with some supporting errata in the spec text?

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

1 participant