Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

multer

Package Overview
Dependencies
Maintainers
3
Versions
46
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

multer - npm Package Compare versions

Comparing version 1.2.1 to 1.3.0

4

CHANGELOG.md

@@ -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,

3

lib/make-middleware.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc