
Security News
/Research
Wallet-Draining npm Package Impersonates Nodemailer to Hijack Crypto Transactions
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
koa2-upload
Advanced tools
基于formidable的,适用于koa2的处理文件上传的中间件
npm i --save koa2-upload
const koa = require('koa');
const app = new Koa();
const fileHandler = require('koa2-upload');
app.use(fileHandler({ autoDelete: true }))
app.use(async (ctx)=>{
// ctx.fields
// ctx.files
})
stream: 默认值 false , 设置为true会将上传文件流挂载在ctx.files[key].stream中
autoDelete: 默认值 false ,设置为true在请求结束之后会删除本地缓存文件
uploadDir: 设置为文件保存路径
maxFileSize: 设置上传文件最大字节数
FAQs
A middleware for koa2 to handle file upload based on formidable
The npm package koa2-upload receives a total of 0 weekly downloads. As such, koa2-upload popularity was classified as not popular.
We found that koa2-upload demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
/Research
Malicious npm package impersonates Nodemailer and drains wallets by hijacking crypto transactions across multiple blockchains.
Security News
This episode explores the hard problem of reachability analysis, from static analysis limits to handling dynamic languages and massive dependency trees.
Security News
/Research
Malicious Nx npm versions stole secrets and wallet info using AI CLI tools; Socket’s AI scanner detected the supply chain attack and flagged the malware.