file
[Required] - The path to a file to be added to IPFS.recursive
[Optional] - Add directory paths recursively. Default: “false”.quiet
[Optional] - Write minimal output.quieter
[Optional] - Write only final hash.silent
[Optional] - Write no output.progress
[Optional] - Stream progress data.trickle
[Optional] - Use trickle-dag format for dag generation
.only-hash
[Optional] - Only chunk and hash - do not write to disk.wrap-with-directory
[Optional] - Wrap files with a directory object.hidden
[Optional] - Include files that are hidden. Only takes effect on recursive add. chunker [string]: Chunking algorithm to use.pin
[Optional] - Pin this object when adding. Default: “true”.raw-leaves
[Optional] - Use raw blocks for leaf nodes. (experimental).nocopy
[Optional] - Add the file using filestore. (experimental).fscache
[Optional] - Check the filestore for pre-existing blocks. (experimental).cid-version
[int]: Cid version. Non-zero value will change default of ‘raw-leaves’ to true. (experimental). Default: “0”.hash
[string]: Hash function to use. Will set Cid version to 1 if used. (experimental). Default: “sha2-256”.multipart/form-data
.Name
- Name of the objectHash
- Hash of the uploaded objectSize
- integer indication size in bytes