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

209
Views
FormData to string rendering

I need to be able to generate multipart-form data and to convert that to string to store it locally. For example, if I generate the form data as follows:

  var form = new FormData();
  form.append('part1', 'part 1 data');
  form.append('part2', 'part 2 data');

I want to ask it to returns its rendering as a string (how it would get transmitted over web):

----------------------------900078007145468816304698
Content-Disposition: form-data; name="part1"

part 1 data
----------------------------900078007145468816304698
Content-Disposition: form-data; name="part2"

part 2 data
----------------------------900078007145468816304698--

Javascript is not exactly my strength, so hoping someone has a simple idea on how to do this.

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