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

Calculate CID #9

Merged
merged 14 commits into from
Nov 30, 2023
Merged

Calculate CID #9

merged 14 commits into from
Nov 30, 2023

Conversation

n8maninger
Copy link
Member

@n8maninger n8maninger commented Nov 30, 2023

Updates the upload endpoint to calculate the CID instead of requiring it to be recalculated.

@alexfreska this will break pind, but it will simplify the upload significantly. You can also stream it now instead of reading it into memory first.

/api/upload/:cid -> /api/unixfs/upload
/api/cid/calculate -> /api/unixfs/calculate

@n8maninger n8maninger merged commit 80524e7 into main Nov 30, 2023
2 checks passed
@n8maninger n8maninger deleted the nate/calculate-cid branch November 30, 2023 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

1 participant