Topic: force download

<?php
    header('Content-Type: application/octet-stream');
    header('Content-Disposition: attachment; filename='.basename($path));
    header('Content-Transfer-Encoding: binary');
    header('Expires: 0');
    header('Cache-Control: must-revalidate');
    header('Pragma: public');
    header('Content-Length:. filesize($path));
    ob_clean();
    flush();
    readfile($path);
    exit;
?>

Gal kas zino kodel tokie header nustatymai nepradeda siuntimo ant androido narsykles, nors ant kitu narsykliu veikia normaliai?

Re: force download

header('Content-Length:. filesize($path)); su klaida?