Gathering detailed insights and metrics for multer-storage-pkgcloud
Gathering detailed insights and metrics for multer-storage-pkgcloud
Gathering detailed insights and metrics for multer-storage-pkgcloud
Gathering detailed insights and metrics for multer-storage-pkgcloud
A multer storage plugin to upload files into a from pkgcloud supported cloud object storage
npm install multer-storage-pkgcloud
Typescript
Module System
Node Version
NPM Version
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
8 Stars
35 Commits
4 Forks
1 Watchers
1 Branches
2 Contributors
Updated on Jul 21, 2021
Latest Version
1.2.1
Package Id
multer-storage-pkgcloud@1.2.1
Size
2.57 kB
NPM Version
2.14.7
Node Version
4.2.2
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
This is a multer storage plugin to upload files into a from pkgcloud supported cloud object storage.
It is just a storage plugin for multer. So you will need multer as well as pkgcloud to use this plugin. Please have a look at these two awesome projects:
IMPORTANT: Multer version >= 1.0.0 required!
$ npm install multer-storage-pkgcloud
Get the dependencies and create a pkgcloud client.
1var express = require('express') 2var multer = require('multer') 3var pkgcloud = require('pkgcloud') 4var pkgcloudStorage = require('multer-storage-pkgcloud') 5 6var client = pkgcloud.storage.createClient({ /* pkgcloud config object */ }) 7// See pkgcloud documentation for more information
By default, file are stored in container named uploads
and the name of the file is the file.originalname
.
container
: Overwrite the container name.destination
: Destination function which will be called for each file-upload to rename the container and/or the remote file.
See documentation of multer to get more information about the file
object. The object passed to the callback cb
is a option object from pkgcloud. See pkgcloud/pkgcloud#file.1var storage = pkgcloudStorage({ 2 client: client, 3 destination: function (req, file, cb) { 4 cb(null, { 5 container: 'myContainer', 6 remote: 'some/path/' + file.originalname 7 }) 8 } 9})
Then use the multer middleware in your express app. See multer for more detailed usage information of upload
.
1var app = express(); 2 3var upload = multer({ 4 storage: storage 5}); 6 7app.use('/', upload.single('fieldname1')); 8app.use('/', upload.array('fieldname2', 12));
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
0 existing vulnerabilities detected
Reason
Found 2/20 approved changesets -- score normalized to 1
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More