The options when adding data to the IPFS file system.
InheritanceAddFileOptions
Namespace: Ipfs.CoreApi Assembly: Ipfs.Core.dll Syntaxpublic class AddFileOptions
Properties | Improve this Doc View Source ChunkSize
The maximum number of data bytes in a block.
Declarationpublic int ChunkSize { get; set; }
Property Value Type Description Int32
The default is 256 * 1024 (262,144) bytes.
| Improve this Doc View Source EncodingThe encoding algorithm name to use.
Declarationpublic string Encoding { get; set; }
Property Value See Also | Improve this Doc View Source Hash
The hashing algorithm name to use.
Declarationpublic string Hash { get; set; }
Property Value See Also | Improve this Doc View Source OnlyHash
Determines if only file information is produced.
Declarationpublic bool OnlyHash { get; set; }
Property Value Type Description Boolean
If true no data is added to IPFS. The default is false.
| Improve this Doc View Source PinDetermines if the data is pinned to local storage.
Declarationpublic bool Pin { get; set; }
Property Value Type Description Boolean
If true the data is pinned to local storage and will not be garbage collected. The default is true.
| Improve this Doc View Source ProgressUsed to report the progress of a file transfer.
Declarationpublic IProgress<TransferProgress> Progress { get; set; }
Property Value | Improve this Doc View Source ProtectionKey
The key name used to protect (encrypt) the file contents.
Declarationpublic string ProtectionKey { get; set; }
Property Value Type Description String
The name of an existing key.
See Also | Improve this Doc View Source RawLeavesDetermines if raw blocks are used for leaf data blocks.
Declarationpublic bool RawLeaves { get; set; }
Property Value Type Description Boolean
The default is false.
| Improve this Doc View Source TrickleDetermines if the trickle-dag format is used for dag generation.
Declarationpublic bool Trickle { get; set; }
Property Value Type Description Boolean
The default is false.
| Improve this Doc View Source WrapDetermines if added file(s) are wrapped in a directory object.
Declarationpublic bool Wrap { get; set; }
Property Value Type Description Boolean
The default is false.
See AlsoRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4