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

8 lines
185 B
JavaScript
Raw Normal View History

2024-09-16 05:00:58 +00:00
// uploadMiddleware.js
const multer = require("multer")
const storage = multer.memoryStorage()
const upload = multer({ storage: storage })
module.exports = upload.single("imageFile")