tags:

views:

41

answers:

2

hi everybody,

I have a link in my page :

<a href="sharedfiles/general.pdf"> View PDF</a>

The problem is that when the link is clicked, Instead of viewing the content of the file in the browser, the file is downloaded .

Any ideas what's wrong?

ps : I have Mozilla FireFox 3.6 & Adobe Reader Installed

+1  A: 

Make sure you use the correct mime type (application/pdf), and the Content-Disposition: inline header.

Matthew Flaschen
thx =)it works !
Dev88
A: 

Check your webserver is providing the correct MIME type for the response - it should be application/pdf

Paul Dixon