prod125njac/prod125njac-back-b/authsec_node/Backend/middleware/uploadMiddleware.js

8 lines
185 B
JavaScript

// uploadMiddleware.js
const multer = require("multer")
const storage = multer.memoryStorage()
const upload = multer({ storage: storage })
module.exports = upload.single("imageFile")