Skip to content

docs: document the cid_version upload option and unixfs-v1-2025 profile - #113

Merged
lukax merged 1 commit into
mainfrom
docs/cid-version-unixfs-v1-2025
Aug 4, 2026
Merged

docs: document the cid_version upload option and unixfs-v1-2025 profile#113
lukax merged 1 commit into
mainfrom
docs/cid-version-unixfs-v1-2025

Conversation

@lukax

@lukax lukax commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

What

The v3 uploads API accepts a cid_version option that selects the UnixFS import profile used to hash an upload — v0, v1 (default) and, since files-v3#415, unixfs-v1-2025 (IPIP-499). None of it was documented.

  • Guide (files/uploading-files.mdx): new "CID Version" section under How to Upload Files with a profile comparison table (CID format, leaf encoding, chunk size, max links, ipfs add equivalent), when to reach for each, and how to pass the option on form-data, resumable (TUS) and signed-URL uploads.
  • API reference (pinata-api-v3-uploads.yaml): cid_version added to POST /files (multipart form field) and POST /files/sign (JSON body), so it renders in the endpoint pages.

Notes

  • The section states that unixfs-v1-2025's wider chunk/link settings apply to file DAGs; directory shard settings are unchanged, so folder uploads large enough to shard (~2,000+ entries) may not match a test-cid-v1-wide kubo import. That is the current server behaviour.
  • The SDK's cidVersion() type is still "v0" | "v1", so the SDK example uses v0 and a tip points to the API for unixfs-v1-2025. Worth a follow-up in pinata-sdk to widen the type.

🤖 Generated with Claude Code

The v3 uploads API accepts a cid_version option (v0, v1, unixfs-v1-2025)
that selects the UnixFS import profile used to hash an upload, but none of
it was documented.

- Add a "CID Version" section to the uploading files guide: profile
  comparison table, kubo equivalents, how to pass the option on form-data,
  resumable (TUS) and signed-URL uploads, and the folder-sharding caveat
  for unixfs-v1-2025.
- Add cid_version to POST /files and POST /files/sign in the uploads
  OpenAPI spec so it shows up in the API reference.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@mintlify

mintlify Bot commented Aug 4, 2026

Copy link
Copy Markdown
Contributor

Preview deployment for your docs. Learn more about Mintlify Previews.

Project Status Preview Updated (UTC)
pinata 🟢 Ready View Preview Aug 4, 2026, 12:40 AM

@lukax
lukax merged commit db5b9bb into main Aug 4, 2026
1 check passed
@mintlify mintlify Bot mentioned this pull request Aug 4, 2026
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

Successfully merging this pull request may close these issues.

2 participants