Add folder to IPFS - helpful details #2012
Closed
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Describe your changes
Adds an example on how to add a directory (not just a single file) by using curl and
/api/v0/add
. API docs are pretty clear as I've read about all of the page. The one unclear part is about adding folders.Files changed
What issue(s) does this address?
x-directory
header in Curl requests. #704 . About that, as far as I know, the only way to add a folder by using /api/v0/add is to specify one or multiple files plus the options in this PR. You cannot have a path to a folder and expect /api/v0/add to work. Or can you? (Something likecurl -XPOST -F "file=@folder/;filename=folder" 127.0.0.1:5001/api/v0/add
?) The documentation is unclear and this PR helps to fix that.Does this update depend on any other PRs?
Checklist before requesting a review
Checklist before merging