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

153
Views
Is it possible to attach a file created in javascript to a file input field for uploading

I've inherited a rather old application, all forms are done 'old school' without any fancy JavaScript. Multiple forms allow users to upload or replace profile pics of themselves. Now they want to upgrade the site to allow users to use webcams (if available) to take a picture of themselves and upload that instead.

I've got all of the logic in place to take the picture and convert the image to a FileData object.

Question:

Instead of converting all of the forms to send via ajax (which would not be thaaaaat painful I guess...) Is there anyway I can just attach that FormData back into the form so it can be processed 'old school' style again? (Good ole' enctype='multipart/form-data)

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!