Skip to main content
GridFS stores files inside MongoDB (metadata in fs.files, content chunks in fs.chunks). The GridFS resource only needs a MongoDB connection URI plus a database name; the connection is set up exactly like the MongoDB resource.

Credentials

1. Get Your Connection URI

Local MongoDB

MongoDB Atlas (Cloud)

  1. Go to https://cloud.mongodb.com
  2. Select your cluster -> Connect -> Drivers
  3. Copy the connection string:

Self-hosted with Authentication

2. Set Environment Variables

For usage, see the Python GridFS resource or the TypeScript GridFS setup.