import multer from "multer";
/*
 * Configure multer for handling multipart/form-data
 * Uses memory storage to store files in memory as Buffer objects
 */
const upload = multer({ storage: multer.memoryStorage() });
/*
 * Middleware for handling any file uploads (multipart/form-data)
 * This is useful for webhooks that send data as multipart/form-data (e.g., SendGrid inbound email)
 */
const MultipartFormDataMiddleware = upload.any();
export default MultipartFormDataMiddleware;
//# sourceMappingURL=MultipartFormData.js.map