Skip to content

Commit

Permalink
increased body size to allow more and larger attachments
Browse files Browse the repository at this point in the history
  • Loading branch information
EthyMoney committed Mar 31, 2024
1 parent 063318a commit 8fa2bb9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/host.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ const port = 3000;
app.disable('x-powered-by');

// Middleware
app.use(express.urlencoded({ limit: '200mb', extended: true })); // Parse URL-encoded bodies
app.use(express.json({ limit: '200mb' }));
app.use(express.urlencoded({ limit: '2000mb', extended: true })); // Parse URL-encoded bodies
app.use(express.json({ limit: '2000mb' }));

// Configure parsing body as JSON (we need this or body will be empty)
app.use(express.json());
Expand Down

0 comments on commit 8fa2bb9

Please sign in to comment.