Skip to content

Commit

Permalink
fix: decrease file size limit to 10 mb
Browse files Browse the repository at this point in the history
  • Loading branch information
ioanmo226 committed Mar 8, 2023
1 parent de6f6cf commit 2cfe98e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 2cfe98e

Please sign in to comment.