formdata-parse
v1.0.7
Published
parse the formData from express middleware
Downloads
11
Maintainers
Readme
formdata-parse
An Express middleware of Formidable that just works.
What is formdata-parse?
[formdata-parse] is a Node.js module
for parsing form data, including multipart/form-data
file upload.
It aims to just work.
Install
npm install formdata-parse
How to use
import parseForm from 'formdata-parse';
import express from 'express';
let app = express();
app.post('/upload',parseForm, (req, res, next) => {
req.fields; // contains non-file fields
req.files; // contains files
});
And that's it.