Spencer Nguyen - January 18, 2018
Starting in DreamFactory 2.11, you can create a MongoDB GridFS service. GridFS is a specification within MongoDB that allows you to store and retrieve files that exceed the BSON-document size limit of 16 MB. It does this by splitting the blob or file into separate chunks and storing each chunk as a separate document.
gridfs.png


DreamFactory interacts with GridFS the same as any other remote file service, such as AWS S3 or Azure Blob Storage, but it connects to it as a database service. DreamFactory and MongoDB will handle all the streaming and file splicing for you.

The GridFS service is designed primarily for users who need to store large amounts of data within MongoDB. It’s not recommended for storing static resources such as Javascript files or CSS.

The GridFS service even allows for simple range header requests and can stream from and to a specific position in the BLOB data. For more information on range requests and setting up DreamFactory with GridFS, see the docs

Check out the community forum to discuss or let us know what you think in the comments!