A multer storage plugin for uploading files to cloud object storage providers supported by pkgcloud (e.g., OpenStack, Amazon S3, Rackspace). Version 1.2.1 is the latest stable release. The package wraps pkgcloud's client to provide a drop-in multer storage engine. It requires multer >= 1.0.0 and pkgcloud itself. Minimal configuration: just a pkgcloud client and optional container/destination customization. Compared to other multer storage plugins (like multer-s3), this one is provider-agnostic via pkgcloud.
npm install multer-storage-pkgcloudNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to set up a multer middleware with pkgcloud storage for file uploads using OpenStack, including client creation and destination function.
Upgrade multer to version 1.0.0 or higher.
Consider using alternative multer storage plugins like multer-s3 or multer-google-cloud-storage.
Switch to cloud-specific SDKs (e.g., @aws-sdk/client-s3 for S3) and use corresponding multer storage plugins.
Use the destination function to generate unique remote paths, e.g., `${Date.now()}-${file.originalname}`.Wrap multer middleware in try-catch or implement multer error handling (e.g., multer error middleware).
Ensure the field name in multer configuration matches the form input name exactly.
Verify client is created with valid credentials and passed as { client: client } (not just client alone).Either create the container 'uploads' beforehand or specify a different container in destination function.
Check the authUrl and region; ensure connectivity to the endpoint.