Skip to content

Commit e85e8c3

Browse files
refactor(api): increase maximum file size limit to 70MB for uploads (#1875)
Co-authored-by: Tofik Hasanov <[email protected]>
1 parent 1bf1052 commit e85e8c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

apps/api/src/main.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,9 @@ async function bootstrap(): Promise<void> {
2525
);
2626

2727
// Configure body parser limits for file uploads (base64 encoded files)
28-
app.use(express.json({ limit: '15mb' }));
29-
app.use(express.urlencoded({ limit: '15mb', extended: true }));
28+
// 70mb allows for ~50mb actual file size after base64 encoding overhead (~33%)
29+
app.use(express.json({ limit: '70mb' }));
30+
app.use(express.urlencoded({ limit: '70mb', extended: true }));
3031

3132
// Enable CORS for cross-origin requests
3233
app.enableCors({

0 commit comments

Comments
 (0)