Skip to content

Instantly share code, notes, and snippets.

View seyofori's full-sized avatar
🔥
maven

Seyram Alvin Ofori seyofori

🔥
maven
View GitHub Profile
@seyofori
seyofori / 413-payload-too-large-fix.js
Created June 20, 2023 14:19 — forked from Maqsim/413-payload-too-large-fix.js
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
@seyofori
seyofori / CountryCodes.json
Created June 20, 2023 09:50 — forked from anubhavshrimal/CountryCodes.json
Country and Dial or Phone codes in JSON format
[
{
"name": "Afghanistan",
"dial_code": "+93",
"code": "AF"
},
{
"name": "Aland Islands",
"dial_code": "+358",
"code": "AX"