0
我正在編寫一個網站,當有人訪問該鏈接時,會自動下載一個APK「http://www.sample-link.com/download/ downloadApp 這是我在PHP站點代碼。在Android設備上強制下載時出現「Unable to download。Content not supported」
$fileName = "./uploads/MyAPK.apk";
header('Content-type: application/download');
header('Content-Disposition: attachment; fileName="' . basename($fileName) . '"');
header('Content-Transfer-Encoding: binary');
readfile($fileName);
當我訪問PC的鏈接,它的工作原理。當我做它在Android設備上,下載無法完成。它卡在下載排隊錯誤「無法下載。內容不支持」我試圖重新啓動設備,但它不工作,如何解決