Skip to content

Instantly share code, notes, and snippets.

@WoolDoughnut310
Created October 28, 2022 15:11
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save WoolDoughnut310/6b58de132af03e559b9f961a7fa66a01 to your computer and use it in GitHub Desktop.
Save WoolDoughnut310/6b58de132af03e559b9f961a7fa66a01 to your computer and use it in GitHub Desktop.
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