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);
    ?>

  • Can you describe what exactly happens in Opera Mini? Are you talking about Opera Mini for Android? In High or Extreme compression mode?

Log in to reply
 

Looks like your connection to Opera forums was lost, please wait while we try to reconnect.