A multer storage engine for Google Cloud Storage (GCS) that streams uploaded files directly to a GCS bucket. Version 1.3.0 is the current stable release, last updated in 2020 with no active development since. It supports both ES6 and CommonJS imports, ships TypeScript definitions, and provides automatic retry and custom filename generation. Unlike @google-cloud/multer or gcs-file-multer, this package offers a simpler API with default environment variable configuration (GCS_BUCKET, GCLOUD_PROJECT, GCS_KEYFILE) and supports custom content type functions. However, it relies on the deprecated @google-cloud/storage v2 API and has not been updated for newer Google authentication methods, making it unsuitable for new projects without careful configuration.
npm install multer-google-storageNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Sets up an Express server with multer using MulterGoogleCloudStorage to upload a single file to GCS, with explicit configuration and custom filename.
Consider using @google-cloud/multer or migrate to @google-cloud/storage v6+ with manual multer storage engine.
Use `const { storageEngine } = require('multer-google-storage');` instead of `const MulterGoogleCloudStorage = require('multer-google-storage').default;`Ensure these variables are set or pass explicit config to the constructor.
Do not rely on 'email' config; use keyFilename or default authentication instead.
Set GCS_BUCKET environment variable or pass 'bucket' in config.
Use `const { storageEngine } = require('multer-google-storage');` and call `storageEngine()`.Install it: `npm install @google-cloud/storage@2` (note: latest versions may break).
Use default import: `import MulterGoogleCloudStorage from 'multer-google-storage';`