Skip to content

Commit

Permalink
- Added upload file size limits
Browse files Browse the repository at this point in the history
  • Loading branch information
duggalsu committed Aug 22, 2023
1 parent 2db807c commit de63eee
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions browser-extension/api-server/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ var upload = multer({
cb(null, `${uuidv4()}`); //use Date.now() for unique file keys
},
}),
limits: {
fileSize: 8000000
}
});

module.exports = { uploadData, upload };

0 comments on commit de63eee

Please sign in to comment.