From de63eee5cc6516a18559aad57250413762f5c512 Mon Sep 17 00:00:00 2001 From: Aurora <5505558+duggalsu@users.noreply.github.com> Date: Tue, 22 Aug 2023 16:24:34 +0530 Subject: [PATCH] - Added upload file size limits --- browser-extension/api-server/s3.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/browser-extension/api-server/s3.js b/browser-extension/api-server/s3.js index 17e12817..b11065f4 100644 --- a/browser-extension/api-server/s3.js +++ b/browser-extension/api-server/s3.js @@ -39,6 +39,9 @@ var upload = multer({ cb(null, `${uuidv4()}`); //use Date.now() for unique file keys }, }), + limits: { + fileSize: 8000000 + } }); module.exports = { uploadData, upload };