1

私は次のようなphp-downloadスクリプトを持っています:

<?php
header("Pragma: public"); // required
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false); // required for certain browsers 
header("Content-Description: File Transfer");
header("Content-Disposition: attachment; filename=\"$file\"");
header("Content-Type: $mimeType");
header("Content-Transfer-Encoding: binary");
header("Content-Length: $size");
// Read the file from disk
readfile($path);
?>

通常、これを使用すると、E-Book-Reader(Sony PRS-T1)にファイルをダウンロードさせることができます。ただし、.htaccess-authenticationを含むフォルダー内で同じスクリプトを使用すると、ダウンロードが失敗します。

私のコンピューターでは、.htaccess-authenticationがあるかどうかに関係なく、ダウンロードは機能します。

私の電子ブックリーダーのこの動作の理由を見つけて、保護されたフォルダー内でのダウンロードを可能にするのを手伝ってもらえますか?

ありがとうございました!

[編集]PRS-T1はAndroidを実行します。たぶん、この問題(リンク)が答えです-それは単に不可能です...?

4

0 に答える 0