Created
October 28, 2022 15:11
-
-
Save WoolDoughnut310/6b58de132af03e559b9f961a7fa66a01 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import multer from "multer"; | |
import { GridFsStorage } from "multer-gridfs-storage"; | |
const storage = new GridFsStorage({ url: process.env.ATLAS_URI }); | |
const upload = multer({ storage }); | |
export default upload; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment