Table of Contents

Class GridFSUploadOptions

Namespace
MongoDB.Driver.GridFS
Assembly
MongoDB.Driver.GridFS.dll

Represents options for a GridFS upload operation.

public class GridFSUploadOptions
Inheritance
GridFSUploadOptions
Inherited Members

Properties

Aliases

Gets or sets the aliases.

[Obsolete("Place aliases inside metadata instead.")]
public IEnumerable<string> Aliases { get; set; }

Property Value

IEnumerable<string>

The aliases.

BatchSize

Gets or sets the batch size.

public int? BatchSize { get; set; }

Property Value

int?

The batch size.

ChunkSizeBytes

Gets or sets the chunk size in bytes.

public int? ChunkSizeBytes { get; set; }

Property Value

int?

The chunk size in bytes.

ContentType

Gets or sets the type of the content.

[Obsolete("Place contentType inside metadata instead.")]
public string ContentType { get; set; }

Property Value

string

The type of the content.

DisableMD5

Gets or sets whether to disable MD5 checksum computation when uploading a GridFS file.

public bool DisableMD5 { get; set; }

Property Value

bool

Whether or not MD5 checksum computation is disabled when uploading a GridFS file.

Metadata

Gets or sets the metadata.

public BsonDocument Metadata { get; set; }

Property Value

BsonDocument

The metadata.