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

144
Views
Activate another file select after first file selected

I'm was not able to find the correct answer to my problem so far.

I have an HTML form with two file inputs. To reduce user clicks I would like to activate the second file input after the first file is selected.

Unfortunately so far I have not been able to achieve this.

Here is my try:

document.getElementById("firstFile").addEventListener('change', (event) => {
    document.getElementById("secondFile").click();
});

While this works on Chrome with no problems other browsers are a different story: Safari has no output at all and Firefox logs to console.

<input> picker was blocked due to lack of user activation.

What are possible solutions and is this even possible? Thanks!

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!