Comparing version 1.2.1 to 1.3.0
@@ -6,2 +6,6 @@ # Change log | ||
## 1.3.0 - 2017-01-25 | ||
- Feature: Expose preservePath option | ||
## 1.2.1 - 2016-12-14 | ||
@@ -8,0 +12,0 @@ |
@@ -21,2 +21,3 @@ var makeError = require('./lib/make-error') | ||
this.limits = options.limits | ||
this.preservePath = options.preservePath | ||
this.fileFilter = options.fileFilter || allowAll | ||
@@ -49,2 +50,3 @@ } | ||
limits: this.limits, | ||
preservePath: this.preservePath, | ||
storage: this.storage, | ||
@@ -79,2 +81,3 @@ fileFilter: wrappedFileFilter, | ||
limits: this.limits, | ||
preservePath: this.preservePath, | ||
storage: this.storage, | ||
@@ -81,0 +84,0 @@ fileFilter: this.fileFilter, |
@@ -26,2 +26,3 @@ var is = require('type-is') | ||
var fileStrategy = options.fileStrategy | ||
var preservePath = options.preservePath | ||
@@ -33,3 +34,3 @@ req.body = Object.create(null) | ||
try { | ||
busboy = new Busboy({ headers: req.headers, limits: limits }) | ||
busboy = new Busboy({ headers: req.headers, limits: limits, preservePath: preservePath }) | ||
} catch (err) { | ||
@@ -36,0 +37,0 @@ return next(err) |
{ | ||
"name": "multer", | ||
"description": "Middleware for handling `multipart/form-data`.", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ "Hage Yaapa <captain@hacksparrow.com> (http://www.hacksparrow.com)", |
@@ -102,2 +102,3 @@ # Multer [![Build Status](https://travis-ci.org/expressjs/multer.svg?branch=master)](https://travis-ci.org/expressjs/multer) [![NPM version](https://badge.fury.io/js/multer.svg)](https://badge.fury.io/js/multer) [![js-standard-style](https://img.shields.io/badge/code%20style-standard-brightgreen.svg?style=flat)](https://github.com/feross/standard) | ||
`limits` | Limits of the uploaded data | ||
`preservePath` | Keep the full path of files instead of just the base name | ||
@@ -104,0 +105,0 @@ In an average web app, only `dest` might be required, and configured as shown in |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
25953
410
288