Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

146
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda