in short… don’t do that 
For most cases, especially with zip files or other large binaries, I’d recommend leveraging cloud object storage (like AWS S3, Azure Blob, or Google Cloud Storage) instead of storing the file directly in MongoDB. It’s more cost-efficient, scalable, and tailored for large files.
Here’s a simple way to handle it:
- Store the file in object storage.
- Save a reference (URL or file key) to the file in MongoDB.
This keeps your MongoDB collections lean and fast, while your files are stored in a service that’s purpose-built for binary data.
that said… if you really want to…
You can store large files directly in MongoDB using GridFS. It splits files into chunks and stores them across documents, allowing you to store binary files as well as those that exceed MongoDB’s 16MB limit. It’s useful if you want to manage your binaries directly in the database… but better solutions exist for binary data.