Comparing version 1.4.0 to 1.4.1
@@ -6,2 +6,6 @@ # Change log | ||
## 1.4.1 - 2018-10-11 | ||
- Bugfix: Make sure that req.file.buffer always is a Buffer | ||
## 1.4.0 - 2018-09-26 | ||
@@ -8,0 +12,0 @@ |
{ | ||
"name": "multer", | ||
"description": "Middleware for handling `multipart/form-data`.", | ||
"version": "1.4.0", | ||
"version": "1.4.1", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ "Hage Yaapa <captain@hacksparrow.com> (http://www.hacksparrow.com)", |
@@ -283,3 +283,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) | ||
// A Multer error occurred when uploading. | ||
} else { | ||
} else if (err) { | ||
// An unknown error occurred when uploading. | ||
@@ -286,0 +286,0 @@ } |
@@ -6,3 +6,3 @@ var concat = require('concat-stream') | ||
MemoryStorage.prototype._handleFile = function _handleFile (req, file, cb) { | ||
file.stream.pipe(concat(function (data) { | ||
file.stream.pipe(concat({ encoding: 'buffer' }, function (data) { | ||
cb(null, { | ||
@@ -9,0 +9,0 @@ buffer: data, |
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
26913