Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Allow --cid-version option to be passed to ipfs files add #589

Merged
merged 2 commits into from
Sep 2, 2017

Conversation

alanshaw
Copy link
Contributor

@alanshaw alanshaw commented Sep 1, 2017

Simply passes options to add command into the query string.

I've had to change getDagNode to be able to deal with a CID or a multihash as it's hash argument. This is because when specifying --cid-version=1 we get back a CID in the response from files/add, and then the API uses object/get and object/data to fetch the content that was just added.

Copy link
Contributor

@daviddias daviddias left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

waiting on CI

@daviddias
Copy link
Contributor

image

Going to release with the new go-ipfs 0.4.10 support.

@daviddias daviddias merged commit 717c72f into ipfs-inactive:master Sep 2, 2017
@alanshaw alanshaw deleted the files-add-cid-version branch September 4, 2017 08:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants