
Security News
Another Round of TEA Protocol Spam Floods npm, But It’s Not a Worm
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.
koa-multer-esm
Advanced tools
Route middleware for Koa that handles multipart/form-data using multer in authentic ESM
Route middleware for Koa that handles multipart/form-data using multer in authentic ESM.
This module is a ESM fork of @koa/multer which is a fork of koa-multer, the most widely used multer middleware in the koa community.
Note that you must install either
multer@1.x(Buffer) ormulter@2.x(Streams):
npm install --save koa-multer-esm multer
import Koa from "koa";
import Router from "@koa/router";
import multer from "koa-multer-esm";
const app = new Koa();
const router = new Router();
const upload = multer(); // note you can pass `multer` options here
// add a route for uploading multiple files
router.post(
'/upload-multiple-files',
upload.fields([
{
name: 'avatar',
maxCount: 1
},
{
name: 'boop',
maxCount: 2
}
]),
ctx => {
console.log('ctx.request.files', ctx.request.files);
console.log('ctx.files', ctx.files);
console.log('ctx.request.body', ctx.request.body);
ctx.body = 'done';
}
);
// add a route for uploading single files
router.post(
'/upload-single-file',
upload.single('avatar'),
ctx => {
console.log('ctx.request.file', ctx.request.file);
console.log('ctx.file', ctx.file);
console.log('ctx.request.body', ctx.request.body);
ctx.body = 'done';
}
);
// add the router to our app
app.use(router.routes());
app.use(router.allowedMethods());
// start the server
app.listen(3000);
| Name | Website |
|---|---|
| Nick Baugh | http://niftylettuce.com/ |
| Imed Jaberi | https://www.3imed-jaberi.com/ |
| UnKnoWn-Consortium |
MIT © Fangdun Cai
FAQs
Route middleware for Koa that handles multipart/form-data using multer in authentic ESM
We found that koa-multer-esm 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
Recent coverage mislabels the latest TEA protocol spam as a worm. Here’s what’s actually happening.

Security News
PyPI adds Trusted Publishing support for GitLab Self-Managed as adoption reaches 25% of uploads

Research
/Security News
A malicious Chrome extension posing as an Ethereum wallet steals seed phrases by encoding them into Sui transactions, enabling full wallet takeover.