Fix bug re: removed pushing of cleanups introduced in d58eb2dcbe, and possibly contributing to the issue from 1.4.1 due to the writestreams not being closed

master
Thomas Lynch 2 years ago
parent 1924fa732a
commit 9e7569d493
  1. 2
      lib/processMultipart.js
  2. 4
      package-lock.json
  3. 2
      package.json

@ -96,6 +96,8 @@ module.exports = (options, req, res, next) => {
? tempFileHandler(options, field, filename) // Upload into temporary file.
: memHandler(options, field, filename); // Upload into RAM.
cleanups.push(cleanup);
const writePromise = options.useTempFiles
? getWritePromise().catch(err => {
req.unpipe(busboy);

4
package-lock.json generated

@ -1,12 +1,12 @@
{
"name": "@fatchan/express-fileupload",
"version": "1.4.1",
"version": "1.4.2",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@fatchan/express-fileupload",
"version": "1.4.1",
"version": "1.4.2",
"license": "MIT",
"dependencies": {
"busboy": "^1.6.0"

@ -1,6 +1,6 @@
{
"name": "@fatchan/express-fileupload",
"version": "1.4.1",
"version": "1.4.2",
"author": "Richard Girges <richardgirges@gmail.com>",
"description": "Simple express file upload middleware that wraps around Busboy",
"main": "./lib/index",

Loading…
Cancel
Save