I have a downloaded script file that I wrote that reads the files below public_html and allows the user to download them after checking if the user is registered and that the file is a valid file for them. download.
The problem that I recently ran into is that on the iPad it just does nothing when the link is clicked.
Sample download file code after performing all checks:
header("Pragma: public"); header("Expires: 0"); header("Cache-Control: must-revalidate, post-check=0, pre-check=0"); header("Cache-Control: private",false); header("Content-Type: application/msword"); header("Content-Disposition: attachment; filename=\"file.doc\";" ); header("Content-Length: 50688"); readfile(SITE_PATH .'/files/file.doc');
This script has been tested and tested on PC, Mac and Linux computers in multiple browsers (FF, Opera, IE6-9, Chrome, Safari) and everything seems to work fine, so this should be something the iPad does otherwise .
I would suggest that this is because the iPad does not have the file structure as such for downloading files, but I'm not sure.
Has anyone encountered this problem before? If so, is there a fix?
source share