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

139
Vistas
FormData.append() appears to not be adding items

I am working on a project using Angular and Node for a job I am training for and am currently stuck trying to fix what appears to be my own misunderstanding of the FormData data type. I have isolated the problem to the following code:

const postData = new FormData();
        postData.append("title", title);
        postData.append("content", content);
        this.http
          .post<{ message: string; post: Post }>(
            "http://localhost:3000/api/posts",
            postData
          )

Before this code is run, the variables that supply the data to the FormData contain the correct information, but on the backend the parameters come up undefined. Attempts to peer into the FormData are causing CORS errors that appear in no other contexts. Any help either letting me see into the FormData, better verifying what is happening on the backend, or using FormData in general would be appreciated.

about 4 years ago · Juan Pablo Isaza
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