Skip to content

Commit 2a26811

Browse files
authored
feat(es-1415): allow 20mb file upload (#7424)
1 parent 431463b commit 2a26811

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/nasty-waves-yell.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@vue-storefront/middleware": minor
3+
---
4+
5+
[CHANGED] The maximum file upload size limit has been increased to 20MB.

packages/middleware/src/services/fileUpload.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ export function createMulterMiddleware(
2222

2323
const maxFileSizeLimit = Math.min(
2424
config.maxFileSize,
25-
10 * 1024 * 1024 // 10MB absolute maximum
25+
20 * 1024 * 1024 // 20MB absolute maximum
2626
);
2727

2828
const upload = multer({

0 commit comments

Comments
 (0)