Skip to content
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 \"[email protected];filename=path1/file1.txt\" -F \"[email protected];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