express-formidable-typescript
v1.0.2
Published
Because `express-formidable` is no longer maintained, and the `formidable` version needs to be updated, so I a maintained typescript version here
Downloads
36
Maintainers
Readme
express-formidable-typescript
Because express-formidable
is no longer maintained, and the formidable
version needs to be updated, so I a maintained typescript version here
Install
npm install express-formidable-typescript
How to use
import express from 'express';
import formidableMiddleware from 'express-formidable';
const app = express();
app.use(formidableMiddleware());
app.post('/upload', (req, res) => {
req.fields; // contains non-file fields
req.files; // contains files
});