OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

PDF uploaded within a folder downloads when viewed on phone browser - I want to change that to View

  • Thread starter Thread starter Vinith Almeida
  • Start date Start date
V

Vinith Almeida

Guest
Noticed that when I click on a direct link to a PDF (mysite.com/resource/flyer.pdf) on my phone it downloads and then gives an option to view (Would you like to open the downloaded file?) instead of just opening the PDF in the browser itself.

However, this doesn't happen on desktop browser where it directly open in the browser.

I looked around and see that this has to do with response headers but I am not sure where and how to add or edit them.

The PDF file is the only thing in the folder.

I am on a litespeed server BTW.
<p>Noticed that when I click on a direct link to a PDF (mysite.com/resource/flyer.pdf) on my phone it downloads and then gives an option to view (Would you like to open the downloaded file?) instead of just opening the PDF in the browser itself.</p>
<p>However, this doesn't happen on desktop browser where it directly open in the browser.</p>
<p>I looked around and see that this has to do with response headers but I am not sure where and how to add or edit them.</p>
<p>The PDF file is the only thing in the folder.</p>
<p>I am on a litespeed server BTW.</p>
Continue reading...
 
Top