I have launched an HTML5 website. I've integrated a pdf viewer to show a pdf inside browser. However, after uploading files to the host, browser downloads pdf instead of presenting my pdf. Please check Resume section here. Here is the code I'm using:
<!-- SECTION 1.1 - Resume -->
<section class="no-display">
<div class="profile" id="2">
<h2>My<span>Resume</span><br></h2>
<div class="sep1"></div>
<p>
<object data="attach/Resume.pdf" type="application/pdf" width="660"
height="3710" Content-Disposition: inline; filename=Resume.pdf>
<a href="Resume">Resume.pdf</a>
</object>
</p>
<div class="clearfix"></div>
</div>
</section>
<!-- SECTION 1.1 - Resume -->
Even when you try to open the website (while loading webpage), browser requests to download it!
Update: I checked the header status of my website:
HTTP/1.1 200 OK
Content-Type: text/html
Content-Length: 27522
Connection: keep-alive
Keep-Alive: timeout=15
Date: Sat, 27 May 2017 09:30:38 GMT
Server: Apache
Last-Modified: Sat, 27 May 2017 08:01:38 GMT
ETag: "6b82-5507cdd152130"
Accept-Ranges: bytes
As it is obvious, the content-type is set to text/html. I'm not sure if it is related to this issue or not. If it is, would you pls let me know how to change/edit it ?