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

136
Vistas
Select a known file via another button in html

I am trying to select a specific file by clicking on another button.
This answer uses JavaScript and triggers the entry of the hidden file. The result can be seen here.
In my case, I already know the name of the file I want to select. I also know its directory.
Is there a way to pass this file name to a function? Something like document.getElementById('my_file').click(fname);
where fname = 'image/img.png'.

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

No. The only way is to open the file selection dialog and select the specific file. There's no way to tell it which file to select or from which directory to start.

about 4 years ago · Juan Pablo Isaza Denunciar
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