You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 10, 2020. It is now read-only.
Copy file name to clipboardexpand all lines: API/files/README.md
+5-1
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,11 @@ Where `data` may be
23
23
24
24
If no `content` is passed, then the path is treated as an empty directory
25
25
26
-
`options` is an optional object argument containing the [DAG importer options](https://github.com/ipfs/js-ipfs-unixfs-engine#importer-api).
26
+
`options` is an optional object argument that might include the following keys:
27
+
28
+
- cid-version (integer, default 0): the CID version to use when storing the data (storage keys are based on the CID, including it's version)
29
+
- progress (function): a function that will be called with the byte length of chunks as a file is added to ipfs.
30
+
- hashAlg || hash (string): multihash hashing algorithm to use
27
31
28
32
`callback` must follow `function (err, res) {}` signature, where `err` is an error if the operation was not successful. `res` will be an array of:
0 commit comments