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

341
Visualizações
In IE browser when we use <input type="file"> to select a file the browser retains the value, but the same thing is not happening in edge/chrome

My application was working fine on IE browser, but while migrating it to chrome I am facing a certain issue, in IE whenever we click on select file button then browse and select a file, after that when we click again on select file button we can see the value of selected file is shown in file name that is shown in the dialog box, but in case of chrome on clicking the button the second time, file name value that was selected before is not shown, is there any way to fix this.

I have gone through many pages but everywhere it is mentioned that we cannot do anything with file select option due to security reasons. Is there any workaround in this case, as I am not trying to upload the file, just wanted to show the file name which was previously selected. This is already happening in IE browser not sure how to enable it in EDGE/Chrome.

<label for="avatar">Choose a profile picture:</label>
<input type="file" id="avatar" name="avatar">

In the above code when we click on choose file and select a file it gets selected, when we click on choose file the next time, In IE browser the name of already selected file is shown in file name but the same thing is not happening in edge/chrome.

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