From 2cfe98e45806bb412088f2a4ea6f5cb459676726 Mon Sep 17 00:00:00 2001 From: Ioan Moldovan Date: Wed, 8 Mar 2023 00:13:22 -0400 Subject: [PATCH] fix: decrease file size limit to 10 mb --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index ba98b1f..5333d37 100644 --- a/index.js +++ b/index.js @@ -28,7 +28,7 @@ const upload = multer({ cb(null, filename); } }), - limits: { fileSize: 1024 * 1024 * 25 }, // 10 MB + limits: { fileSize: 1024 * 1024 * 10 }, // 10 MB fileFilter: function (req, file, cb) { const allowedExtensions = ['.mp3', '.mp4', '.mpeg', '.mpga', '.m4a', '.wav', '.webm']; const extension = path.extname(file.originalname);