problem is ios/chrome, instead of downloading file it just opens it, i did google this and found out many have this issue but it never states how they solved it
https://developer.apple.com/forums/thread/91868
https://www.reddit.com/r/ios/comments/7 ... on_ios_11/
https://stackoverflow.com/questions/418 ... gle-chrome
https://bugs.chromium.org/p/chromium/is ... ?id=574033
https://www.tutorialfor.com/questions-319971.htm
im using <a href='myscript.php download>Download</a> to download files
php
Code: Select all
header("Content-Description: File Transfer");
header("Content-Type: application/octet-stream");
if (strlen($ext)>0){
header("Content-Disposition: attachment; filename=" . $name.'.'.$ext . "");
}else{
header("Content-Disposition: attachment; filename=" . $name."");
}
header('Content-Length: ' . filesize($file));
readfile($file);
exit();