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

269
Views
How to send a Map Object With FormData to .NET API?

When i try to send a map object with FormData its give an error like;

TS2345: Argument of type 'Map<number, number>' is not assignable to parameter of type 'string | Blob'.   Type 'Map<number, number>' is missing the following properties from type 'Blob': type, arrayBuffer, slice, stream, tex

How can i send this object with formdata to my .net API ?

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Convert to json and send like this

var content = '{ json data here }';
var blob = new Blob([content], { type: "text/json"});
formData.append("jsonData", blob);

OR

new Blob([JSON.stringify({
   description: 'description',
})], {
   type: 'application/json'
})
about 4 years ago · Santiago Trujillo Report
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!