Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

178
Vistas
Https Request payload too large. Help me in understanding the concept

I am trying to send a base64 string of a file in an axios request body. The file size is arond 370KB.

I got request payload too large 413 error. After doing some research in internet learned that server is limiting the request size.

Till now my understanding is clear.

Now I changed it to formData and passing that form data as a request body. And I am not getting any 413 error. Server neatly provessed my request.

So what hapenned between formData and server?

Server is running on Nginx, Node, Express.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

By default axios sends data as JSON and on Node.js side JSON parser has a default limit of 100KB. So you can either continue to use formData or increase a limit in JSON parser options.

    app.use(json({
        limit: '20mb'
    }));

But if you intend to send large content often then consider using formData or even send content as binary.

Upd. For FormData if you usually will process it by multer you will have the following limits by default:

Field size: 1048576 bytes
File size: unlimited
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda