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

215
Vistas
How can I change the name of the file that will download?

I have a link

<a href="/media/maca.pdf" download=""><img src="/static/images/download.svg" alt=""></a>

When I click download it starts downloading with the name maca.pdf. But I want to change that.

Can I achieve that?

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

0

You just simply need to have that name in the download="". So if you wanted to name the file myFile.pdf then you would do

<a href="/media/maca.pdf" download="myFile"><img src="/static/images/download.svg" alt=""></a>

Now when you click download the file should be called myFile.pdf

So after looking around it seems it is because your file is coming from a different location. Check out this link Download attribute with a file name not working? and this one Create a Downloadable Link using HTML5 Download Attribute

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