Have <a href= "https://stackoverflow.com/cb289e02-ed2b-4daa-" rel="nofollow noreferrer"> pdf </a> save with a more descriptive file name?
I have a document accessible from a URL, for example http://www.myCompany.com/Documents/cb289e02-ed2b-4daa-8 . I use
<a href="http://www.myCompany.com/Documents/cb289e02-ed2b-4daa-8">TitleCodeReport</a> In the email that is sent to users of this report.
I want to make a link so that when the user clicks it saves it with a friendlier name, for example TitleCodeReport.pdf instead of cb289e02-ed2b-4daa-8 . Any idea how I would do this?
+4
1 answer
You can do this in HTML with the HTML5 download attribute.
<a href="http://foo.com/files/adlafjlxjewfasd89asd8f.pdf" download="foo.pdf">Download It</a> +7