A Multer storage engine for uploading files directly to MinIO object storage. Current stable version 1.0.0 targets Node >=10 and requires MinIO JavaScript client ^7.0.16. It provides a simple, configurable file filter and custom metadata support, integrating Multer's middleware pattern with MinIO's S3-compatible API. Key differentiator: minimal configuration compared to using multer-s3 for non-AWS S3-compatible services.
npm install multer-minio-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Configures multer to store uploaded files on MinIO using multer-minio-storage with custom metadata and filename functions.
Use import syntax or set project to ES modules. If you must use CommonJS, use dynamic import() with .default.
Always verify minioClient is correctly initialized with endPoint, accessKey, secretKey, and optionally port and useSSL.
Pin minio to ^7.0.16 in package.json to avoid unexpected updates.
Ensure the bucket is created before uploading files, e.g., using MinIO client: minioClient.bucketExists('bucketName').then(...).Install minio: npm install minio@^7.0.16. Then import as: import * as Minio from 'minio';
Switch to ES module syntax: import { createMinioStorage } from 'multer-minio-storage'; or use dynamic import: const { createMinioStorage } = await import('multer-minio-storage');Provide a bucket name in the storage options, e.g., { bucket: 'my-bucket' }.