GridFS is a specification for storing and retrieving files in MongoDB. GridFS uses two collections to store files. One collection stores the file chunks (e.g.
fs.chunks), and the other stores file metadata (e.g.
MongoDB\\GridFS\\Bucketclass provides an interface around these collections for working with the files as PHP Streams.