weare-multer
v1.1.0
Published
Use Multer as a middlware.
Downloads
1
Readme
Agence WE_ARE
Repository https://npm.dev.studioweare.com
WE_ARE Multer
Use Multer as a middlware.
Installation
$ npm install weare-multer
Usage
var express = require('express')
var processMultipart = require('weare-multer')({ multer: { dest: './uploads/' } });
var app = express();
app.post('/model', processMultipart, function(req, res) {
console.log(req.body);
console.log(req.files);
});
Settings
The property multer
can contain the same options as the module Multer.
{
multer: {
dest: './uploads/',
includeEmptyFields: true,
...
}
}
Default settings
Unlike Multer, the setting includeEmptyFields
is set to true by default.