IPFS File Name Conventions

  • Create file (e.g. simple .txt file: example.txt)
  • Name and save file
  • Add file to IPFS and copy its CID (Content Identifier)
  • Rename file by appending the CID (example-Qm…txt)

You can verify that changing the file’s name doesn’t change the file’s CID yourself.

Do you think there might be any useful conventions to use if you are incorporating IPFS CIDs into file names?

Using a - to separate the meaningful name and the CID helps make it legible, and the - character is usually OK with most operating systems.

Might there be some additional considerations?

Do you know about MFS? https://docs.ipfs.io/concepts/file-systems/#mutable-file-system-mfs

1 Like