Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

309
Views
Enviando el objeto formData desde el mecanografiado de reacción a la API .NET, pero recibió un valor nulo en el backend

tratando de enviar una matriz de objetos FormData desde React typescript a .NET API, pero recibí un valor nulo en el backend, intenté agregar un tipo de contenido como multipart/formdata pero aún no funcionaba, lo probé del cartero, funciona así:

 models[0].name:sub test 7 models[0].order:7 models[0].processID:176 models[1].name:sub test 5 models[1].order:5 models[1].processID:176

mi código de prueba frontend:

 let models = [ { name: "test1", order: 1, processID: 169 }, { name: "test2", order: 2, processID: 169 }, ]; let subProcessInputModels = new FormData(); subProcessInputModels.append("models", JSON.stringify(models)); SubProcessService.createSubProcess(subProcessInputModels).then((response) => console.log("response", response) )
over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!