Skip to content

Commit

Permalink
Add CID details in SDK docs (#37)
Browse files Browse the repository at this point in the history
* Add CID details in SDK docs

* Update note for CID
  • Loading branch information
aayushmahapatra authored May 29, 2023
1 parent c65bb52 commit f9a3d2f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 5 additions & 1 deletion pages/sdk/browser.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -141,9 +141,13 @@ Function `upload` takes two parameters:
interface UploadRes {
uploadId: string;
bucketId: string;
protocolLink: string;
protocolLink: string; // eg: https://{cid}.ipfs.sphn.link/
dynamicLinks: string[];
}
```

<Callout type="info">
**NOTE:** The `protocolLink` in UploadRes will contain the **IPFS CID** only if the selected protocol is either IPFS or Filecoin.
</Callout>

<Navigation name="Browser Upload SDK" />
6 changes: 5 additions & 1 deletion pages/sdk/storage.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,15 @@ Function `upload` takes two parameters:
interface UploadRes {
uploadId: string;
bucketId: string;
protocolLink: string;
protocolLink: string; // eg: https://{cid}.ipfs.sphn.link/
dynamicLinks: Domain[];
}
```

<Callout type="info">
**NOTE:** The `protocolLink` in UploadRes will contain the **IPFS CID** only if the selected protocol is either IPFS or Filecoin.
</Callout>

---

### Get Bucket
Expand Down

0 comments on commit f9a3d2f

Please sign in to comment.