Amirm8950
MERN Inventory: working backend + frontend
8b8b6f5
raw
history blame contribute delete
222 Bytes
import multer from "multer";
// Store uploads in memory; we'll parse CSV from buffer
const storage = multer.memoryStorage();
export const upload = multer({
storage,
limits: { fileSize: 5 * 1024 * 1024 }, // 5 MB
});