Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

217
Views
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 answers
Answer question

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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!