@gwil Time to organize more of your information spatially? :o
Once I can get a decent VR setup I've been wanting to migrate to @stardustxr and start storing notes and tabs in spatial corners of my workspace.
@technobaboo @gwil URLs generally don't contain mime types since browsers get them from the Content-Type header in the response (yeah, it kinda sucks). A lot of servers sniff the content and the file ending to guess the mime type. Either way you typically need to read from the resource to know what sort it is. 😅
@technobaboo For IPFS URLs, take the stuff in the PATH_GATEWAY spec, but replace `/ipfs/` with `ipfs://`.
I'm also working on a IPLD URL spec that's along the same lines.
But generally its `ipfs://CID_HERE/path/to/file.txt` and similarly `ipns://PUBLICKEY_OR_DNS_HERE/path/to/file.txt`.
@mauve so in terms of the raw data I should just have a MIME item type that contains a MIME type and its associated data in binary as well as a URL type that can hold a single string with an ipfs, https, etc. URL in that format?
@technobaboo Or maybe "Mime" isn't the right word here?
It's more like a "File" where it has a mime type describing what format it is, and a way to load it's data which might be from a URL or from raw data. E.g. the File API in web browsers: https://developer.mozilla.org/en-US/docs/Web/API/File