Skip to content

Instantly share code, notes, and snippets.

View ilorwork's full-sized avatar
😎

Ilor ilorwork

😎
View GitHub Profile
@Maqsim
Maqsim / 413-payload-too-large-fix.js
Last active October 28, 2024 21:06
HOW TO FIX "413 Payload too large" in NodeJS (Express)
const express = require('express');
const bodyParser = require('body-parser');
...
// Express 4.0
app.use(bodyParser.json({ limit: '10mb' }));
app.use(bodyParser.urlencoded({ extended: true, limit: '10mb' }));
// Express 3.0