Skip to content

Commit 2cfe98e

Browse files
committed
fix: decrease file size limit to 10 mb
1 parent de6f6cf commit 2cfe98e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const upload = multer({
2828
cb(null, filename);
2929
}
3030
}),
31-
limits: { fileSize: 1024 * 1024 * 25 }, // 10 MB
31+
limits: { fileSize: 1024 * 1024 * 10 }, // 10 MB
3232
fileFilter: function (req, file, cb) {
3333
const allowedExtensions = ['.mp3', '.mp4', '.mpeg', '.mpga', '.m4a', '.wav', '.webm'];
3434
const extension = path.extname(file.originalname);

0 commit comments

Comments
 (0)