DEV Community

Discussion on: Uploading Files to MongoDB with GridFS and Multer Using NodeJS

Collapse
 
shaheryarshaikh1011 profile image
Shaheryar Shaikh

why cant we add data more than 16 MB

Collapse
 
shubhambattoo profile image
Shubham Battoo

It is limited from MongoDb end. There are some cases listed down by mongodb where you can use this.

Collapse
 
liltimtim profile image
Timothy Dillman

Although this is true for MongoDB itself, GridFS was designed to solve this problem. From Mongo's documentation directly it states: "In MongoDB, use GridFS for storing files larger than 16 MB." Reference: docs.mongodb.com/manual/core/gridfs/