Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

145
Visualizações
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 à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda