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

8 lines
185 B
JavaScript
Raw Normal View History

2024-09-18 04:14:45 +00:00
// uploadMiddleware.js
const multer = require("multer")
const storage = multer.memoryStorage()
const upload = multer({ storage: storage })
module.exports = upload.single("imageFile")