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

186
Views
add file to multiple file upload form

I have a basic multiple file upload form like : <input id="file_input" type="file" multiple/>

When the user clicks "browse...", a Windows OS popup opens (file explorer), the user selects 3 files then clicks "Open". Popup closes, the browser's file input says "3 files selected", the user is ready to click "Submit" in order to upload the files. So far so good.

How do I make it so that the user can ADD more files to this list of 3, without him having to select all the files again, in case he missed some files initially? The default browser behavior when the user clicks "Browse..." again is to wipe all the selected files initially picked.

Kindly note that I do NOT want to use an existing library, but pure javascript. I know there are countless jquery scripts or github repos searching for "multiple file upload".

I did not fine anything related to this on the MDN docs : https://developer.mozilla.org/en-US/docs/Web/API/File/Using_files_from_web_applications or here : https://w3c.github.io/FileAPI

Right now I'm thinking about a dirty solution such as dynamically generating a new upload form in the DOM when the user clicks "Browse..." (or an "add more files" button). There must be more elegant solutions, right?

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!