Force to open "Save As..." popup open at text link click for PDF in HTML

designer-trying-coding picture designer-trying-coding · Sep 27, 2010 · Viewed 388.8k times · Source

I have some big size PDF catalogs at my website, and I need to link these as download. When I googled, I found such a thing noted below. It should open the "Save As..." popup at link click...

 <head>
    <meta name="content-disposition" content="inline; filename=filename.pdf">
    ...

But it doesn't work :/ When I link to a file as below, it just links to file and is trying to open the file.

    <a href="filename.pdf" title="Filie Name">File name</a>

UPDATE (according to answers below):

As I see there is no 100% reliable cross-browser solution for this. Probably the best way is using one of the web services listed below, and giving a download link...

Answer

Ayush Gupta picture Ayush Gupta · Jun 24, 2013

From an answer to Force a browser to save file as after clicking link:

<a href="path/to/file" download>Click here to download</a>