Skip to content

Add folder to IPFS - helpful details #2012

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

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion tools/http-api-docs/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -350,7 +350,7 @@ Argument `+"`%s`"+` is of file type. This endpoint expects one or several files
if bodyArg.Endpoint == "/api/v0/add" {
fmt.Fprintln(buf, `

The `+"`add`"+` command not only allows adding files, but also uploading directories and complex hierarchies.
The `+"`add`"+` command not only allows adding files, but also uploading directories and complex hierarchies. (For example, in cURL, you can upload multiple files and have them show up in a folder by running `+"`curl -sLk -XPOST -F \"file=@file1.txt;filename=path1/file1.txt\" -F \"file=@file2.txt;filename=path2/file2.txt\" \"http://127.0.0.1:5001/api/v0/add?recursive=true&wrap-with-directory=true\"`"+`; -F is specified multiple times along with recursive and wrap-with-directory.)

This happens as follows: Every part in the multipart request is a *directory* or a *file* to be added to IPFS.

Expand Down
Loading