Middleware data parser for images and files using formidable
npm install express-data-parserTo install it with NPM:
``bash`
npm install express-data-parser --save
It uses formidable in the back-end, so the configuration options are the same:
Configuration options for Formidable
Just pass them as the parameter:
`js
var dataParser = require('express-data-parser');
// ...
app.use(dataParser({
encoding: 'utf-8',
uploadDir = "/my/dir"
// ...
}));
``
Francisco Presencia Fandos under the MIT License.