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

1.4K
Vistas
ASP.NET Core 'Multipart body length limit 16384 exceeded' error

I am using ASP.NET Core 1.1. and I am trying to upload files using JQuery AJAX but I keep getting the error: "Multipart body length limit 16384 exceeded"

Reseach told me to add this to my Startup.js file:

public void ConfigureServices(IServiceCollection services)
{
    services.AddMvc();

    services.Configure<FormOptions>(Option =>
    {
        Option.MultipartBodyLengthLimit = 200000000;
    });
}

But I still keep getting the error at

foreach (File file in Request.Form.Files)

I see that that the MultipartBodyLengthLimit is updated at startup but it doesn't seem to hold the updated value somehow when the app runs.

Does this even work in ASP.NET Core or do I need to use another way to upload files using jQuery in ASP.NET Core?

over 4 years ago · Santiago Trujillo
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