Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: The database connection must be open to store files at GridFSStorage._handleFile #548

Open
fuadsayef opened this issue Feb 4, 2023 · 2 comments

Comments

@fuadsayef
Copy link

Error: The database connection must be open to store files
at GridFSStorage._handleFile

@fuadsayef fuadsayef changed the title please help me Error: The database connection must be open to store files at GridFSStorage._handleFile Feb 4, 2023
@rpolenthon
Copy link

Did you find a fix so far? @fuadsayef

@mmosquidz
Copy link

mmosquidz commented Mar 11, 2023

Had the same error and could fix it by forcing mongodb driver version and multer version in package.json :
"mongodb": "5.1.0",
"mongoose": "^7.0.1",
"multer": "1.4.3",
"multer-gridfs-storage": "^5.0.2",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants