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 2.0.0-alpha.4 to 2.0.0-alpha.5

4

CHANGELOG.md

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

5

lib/read-body.js

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

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