Gathering detailed insights and metrics for multer-qiniu-cloud-storage
Gathering detailed insights and metrics for multer-qiniu-cloud-storage
Gathering detailed insights and metrics for multer-qiniu-cloud-storage
Gathering detailed insights and metrics for multer-qiniu-cloud-storage
multer-qiniu-cloud-storage is a multer custom store engine for Qiniu Cloud Storage service.
npm install multer-qiniu-cloud-storage
Typescript
Module System
Node Version
NPM Version
TypeScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
NOASSERTION License
1 Stars
4 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Mar 07, 2023
Latest Version
1.0.2
Package Id
multer-qiniu-cloud-storage@1.0.2
Unpacked Size
17.44 kB
Size
5.17 kB
File Count
8
NPM Version
6.14.6
Node Version
14.6.0
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
3
multer-qiniu-cloud-storage is a multer custom store engine for Qiniu Cloud Storage service. multer-qiniu-cloud-storage 用于自定义七牛云对象存储的 multer storage 配置。
npm i multer-qiniu-cloud-storage -S
or
yarn add multer-qiniu-cloud-storage
In Nest
1import qiniuStorage from 'multer-qiniu-cloud-storage'; 2 3@UseInterceptors( 4 FileInterceptor('file', { 5 storage: new qiniuStorage({ 6 destination: function (req, file, cb) { 7 cb(null, ''); 8 },// optional 9 filename: function (req, file, cb) { 10 const uniqueSuffix = 11 Date.now() + '-' + Math.round(Math.random() * 1e9); 12 cb(null, file.fieldname + '-' + uniqueSuffix); 13 },// optional 14 ACCESS_KEY: '<Your ACCESS_KEY>', 15 SECRET_KEY: '<You SECRET_KEY>', 16 bucket: '<You bucket>', 17 }), 18 }), 19 ) 20 uploadFile(@UploadedFile() file) { 21 console.log(file) 22 }
In Express
1import * as multer from 'multer'; 2import * as express from 'express'; 3import qiniuStorage from 'multer-qiniu-cloud-storage'; 4 5const app = express(); 6 7const uploadHandler = multer({ 8 storage: new qiniuStorage({ 9 destination: function (req, file, cb) { 10 cb(null, ''); 11 },// optional 12 filename: function (req, file, cb) { 13 const uniqueSuffix = 14 Date.now() + '-' + Math.round(Math.random() * 1e9); 15 cb(null, file.fieldname + '-' + uniqueSuffix); 16 },// optional 17 ACCESS_KEY: '<Your ACCESS_KEY>', 18 SECRET_KEY: '<You SECRET_KEY>', 19 bucket: '<You bucket>', 20 }), 21}); 22 23app.post('/upload', uploadHandler.any(), (req, res) => { 24 console.log(req.files); 25 res.json(req.files); 26});
Key | Description | required |
---|---|---|
ACCESS_KEY | qiniu Cloud ACCESS_KEY 七牛云ACCESS_KEY | Yes |
SECRET_KEY | qiniu Cloud SECRET_KEY 七牛云SECRET_KEY | Yes |
bucket | qiniu Cloud bucket name 七牛云存储空间名 | Yes |
getUploadToken | custom token 获取自定义凭证 | No |
destination | The pseudo-folder to which the file has been saved 保存文件的文件夹 | No |
filename | The name of the file on Qiniu Cloud Storage 保存时文件名 | No |
config | Config options for Qiniu Cloud Storage 七牛云上传用的config 对象 | No |
expires | token expire time (default 1 hour)凭证的有效时间(默认有效期为1个小时) | No |
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
9 existing vulnerabilities detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/4 approved changesets -- score normalized to 0
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
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