pro118njsac/pro118njsac-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")