PDF failing to download on mobile

Discussion in 'HTML / PHP / JavaScript / CSS' started by conrads, Jul 30, 2015.

  1. I've set up a page for staff that's password protected in a folder. Nested in that folder is a docs folder where I'm keeping the pdf's.

    The pdf links on the page open fine on desktops, but when I click the links on my phone, the download starts, but fails. Is it because the docs folder inherits the password protection for the parent folder, and that's killing the download?

    The links are href's with target = "_blank". Should I use javascript openwindow instead?

    Thanks!
     
  2. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    I tried setting this up on a test account and didn't have any problems with the iPhone and Safari. You might want to check your mobile phone's browser?
     
  3. I don't think it's the phone settings. I made three test cases:

    1. pdf in a folder in the root directory
    2. pdf in the password protected folder
    3. pdf in the folder nested in the password protected one

    Other pdf's that are available for public download work on my phone. #1 downloaded successfully on my phone, while #2 and #3 failed.
    I have it working now with the pdf's in the root directory. It feels like a hack though.
     
  4. RayH

    RayH DiscountASP.NET Lackey DiscountASP.NET Staff

    Can you send me a pm with the domain name of your site? I just want to compare your settings with mine.
     
    mjp likes this.

Share This Page