Comparing version 2.0.0-alpha.4 to 2.0.0-alpha.5
@@ -6,2 +6,6 @@ # Change log | ||
## 2.0.0-alpha.5 - 2017-02-14 | ||
- Fix: allow files without filename | ||
## 2.0.0-alpha.4 - 2017-02-14 | ||
@@ -8,0 +12,0 @@ |
@@ -46,5 +46,2 @@ var path = require('path') | ||
// don't attach to the files object, if there is no file | ||
if (!filename) return fileStream.resume() | ||
// Work around bug in Busboy (https://github.com/mscdex/busboy/issues/6) | ||
@@ -59,3 +56,3 @@ if (limits && limits.hasOwnProperty('fieldNameSize')) { | ||
clientReportedMimeType: mimetype, | ||
clientReportedFileExtension: path.extname(filename) | ||
clientReportedFileExtension: path.extname(filename || '') | ||
} | ||
@@ -62,0 +59,0 @@ |
{ | ||
"name": "multer", | ||
"description": "Middleware for handling `multipart/form-data`.", | ||
"version": "2.0.0-alpha.4", | ||
"version": "2.0.0-alpha.5", | ||
"contributors": [ | ||
@@ -6,0 +6,0 @@ "Hage Yaapa <captain@hacksparrow.com> (http://www.hacksparrow.com)", |
@@ -72,3 +72,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) | ||
`fieldName` | Field name specified in the form | ||
`originalName` | Name of the file on the user's computer | ||
`originalName` | Name of the file on the user's computer (`undefined` if no filename was supplied by the client) | ||
`size` | Size of the file in bytes | ||
@@ -75,0 +75,0 @@ `stream` | Stream of file |
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
18576
257