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.
// check if we can receive pull-stream after callbackify
29
+
/**
30
+
* @typedef {Object} AddOptions
31
+
* @property {number} chunkSize - Value of array element
32
+
* @property {number} [cidVersion=0] - Defaults to 0. The CID version to use when storing the data (storage keys are based on the CID, including it's version)
33
+
* @property {function(bytes: number): void} progress - function that will be called with the byte length of chunks as a file is added to ipfs.
34
+
* @property {Boolean} recursive - When a Path is passed, this option can be enabled to add recursively all the files.
35
+
* @property {string} hashAlg - Multihash hashing algorithm to use. (default: sha2-256) The list of all possible values {@link https://github.com/multiformats/js-multihash/blob/master/src/constants.js#L5-L343 hashAlg values}
36
+
* @property {Boolean} wrapWithDirectory - Adds a wrapping node around the content.
37
+
* @property {Boolean} onlyHash - Doesn't actually add the file to IPFS, but rather calculates its hash.
38
+
* @property {Boolean} [pin=true] - Defaults to true. Pin this object when adding.
39
+
* @property {Boolean} [rawLeaves=false] - Defaults to false. If true, DAG leaves will contain raw file data and not be wrapped in a protobuf
40
+
* @property {string} [chunker=size-262144] Chunking algorithm used to build ipfs DAGs. Available formats:
0 commit comments