mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-05-23 09:09:36 +02:00
[Core] Update dependency multer to v2.1.1 from 2.0.2 [SECURITY] GitOrigin-RevId: 17cb0c852fe3d17dc201c62eef90455a01a40aa5
14 lines
684 B
Diff
14 lines
684 B
Diff
diff --git a/node_modules/multer/lib/make-middleware.js b/node_modules/multer/lib/make-middleware.js
|
|
index ee50988..de77364 100644
|
|
--- a/node_modules/multer/lib/make-middleware.js
|
|
+++ b/node_modules/multer/lib/make-middleware.js
|
|
@@ -164,7 +164,7 @@ function makeMiddleware (setup) {
|
|
if (fieldname == null) return abortWithCode('MISSING_FIELD_NAME')
|
|
|
|
// don't attach to the files object, if there is no file
|
|
- if (!filename) return fileStream.resume()
|
|
+ if (!filename) filename = 'undefined'
|
|
|
|
// Work around bug in Busboy (https://github.com/mscdex/busboy/issues/6)
|
|
if (limits && Object.prototype.hasOwnProperty.call(limits, 'fieldNameSize')) {
|