Show / Hide Table of Contents

Class AddFileOptions

The options when adding data to the IPFS file system.

Inheritance
Object
AddFileOptions
Inherited Members
Object.Equals(Object)
Object.Equals(Object, Object)
Object.GetHashCode()
Object.GetType()
Object.MemberwiseClone()
Object.ReferenceEquals(Object, Object)
Object.ToString()
Namespace: Ipfs.CoreApi
Assembly: Ipfs.Core.dll
Syntax
public class AddFileOptions

Properties

| Improve this Doc View Source

ChunkSize

The maximum number of data bytes in a block.

Declaration
public int ChunkSize { get; set; }
Property Value
Type Description
Int32

The default is 256 * 1024 (‭262,144) bytes.‬

| Improve this Doc View Source

Encoding

The encoding algorithm name to use.

Declaration
public string Encoding { get; set; }
Property Value
Type Description
String

The MultiBase algorithm name used to produce the Cid. Defaults to DefaultAlgorithmName.

See Also
MultiBase
| Improve this Doc View Source

Hash

The hashing algorithm name to use.

Declaration
public string Hash { get; set; }
Property Value
Type Description
String

The MultiHash algorithm name used to produce the Cid. Defaults to DefaultAlgorithmName.

See Also
MultiHash
| Improve this Doc View Source

OnlyHash

Determines if only file information is produced.

Declaration
public 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

Pin

Determines if the data is pinned to local storage.

Declaration
public 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

Progress

Used to report the progress of a file transfer.

Declaration
public IProgress<TransferProgress> Progress { get; set; }
Property Value
Type Description
IProgress<TransferProgress>
| Improve this Doc View Source

ProtectionKey

The key name used to protect (encrypt) the file contents.

Declaration
public string ProtectionKey { get; set; }
Property Value
Type Description
String

The name of an existing key.

Remarks

ProtectionKey and RawLeaves are mutually exclusive.

See Also
IKeyApi
| Improve this Doc View Source

RawLeaves

Determines if raw blocks are used for leaf data blocks.

Declaration
public bool RawLeaves { get; set; }
Property Value
Type Description
Boolean

The default is false.

Remarks

RawLeaves and ProtectionKey are mutually exclusive.

| Improve this Doc View Source

Trickle

Determines if the trickle-dag format is used for dag generation.

Declaration
public bool Trickle { get; set; }
Property Value
Type Description
Boolean

The default is false.

| Improve this Doc View Source

Wrap

Determines if added file(s) are wrapped in a directory object.

Declaration
public bool Wrap { get; set; }
Property Value
Type Description
Boolean

The default is false.

See Also

IFileSystemApi
  • Improve this Doc
  • View Source
Back to top Generated by DocFX