MongoDB โ GridFS for Large File Storage
Store and stream files exceeding the 16 MB limit using GridFS fs.files and fs.chunks collections.
1How GridFS Works
GridFS divides a file into chunks (default 255 KB) and stores them in two collections:
fs.files: Stores file metadata (filename, upload date, size).fs.chunks: Stores the raw binary data chunks.