Skip to content

MongoDB GridFS Storage

Robin Rodricks edited this page Jul 17, 2026 · 2 revisions

In order to use MongoDB GridFS storage you need to reference the FluentStorage.Mongo package first. The provider wraps around the standard MongoDB Driver.

Connect to MongoDB GridFS

You can use the MongoGridStorage factory class to connect to MongoDB GridFS services.

IStore store = MongoGridStorage.FromCredentials(
    host,port,username,password,databaseName,bucketName,authDatabase,useSsl);

Perform storage operations

Use our simple polycloud API to perform file and object manipulation operations.

Connect using Connection Strings

Not yet supported. Create a ticket if you need this.

Native operations

Call the IStore.GetClient() method to return the native SDK client and perform any native operations.

Clone this wiki locally