<![CDATA[Opera mini cannot download my pdf files]]>hi am a php developer. i have a script that runs fine in all browser (including opera version 42.7.2246.114996) but cannot work for opera mini.Please help
<?php
$name=$_POST['fileName'].".pdf";
function download($downloadfile)
{
GLOBAL $name;
$path='../files/samples/';
$filename=$path.$downloadfile;
$file=fopen($filename,"rb");
$filesize=filesize($filename);
$filetext=fread($file,$filesize);
header("Content-Type: application/octet-stream");
header("Content-Transfer-Encoding:binary");
header("Content-disposition: attachment; filename="" . $name . """);
header("Accept-Ranges:bytes");
header("Content-Length:".$filesize."");
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
header("cache-control: private");
header('Pragma: private');

echo "

".$filetext."

";
fclose($file);
}
download($name);
?>

]]>
https://forums.opera.com/topic/22322/opera-mini-cannot-download-my-pdf-filesRSS for NodeWed, 05 Nov 2025 07:39:19 GMTMon, 21 Aug 2017 20:27:04 GMT60<![CDATA[Reply to Opera mini cannot download my pdf files on Tue, 22 Aug 2017 08:10:10 GMT]]>Can you describe what exactly happens in Opera Mini? Are you talking about Opera Mini for Android? In High or Extreme compression mode?

]]>
https://forums.opera.com/post/126600https://forums.opera.com/post/126600Tue, 22 Aug 2017 08:10:10 GMT