php - "Unable to download. Content not supported" when forcing download on Android device -
I am writing a website that automatically downloads an APK when a link is "http: // www. Sample- Link.com/download/downloadApp This is my code on PHP code.
$ fileName = "./uploads/MyAPK.apk"; header ('content-type: application / download '); Title (' Content-Transfer-Encoding: Binary '); readfile ($ fileName);
/ Pre>When I go to that link on a PC, It works. When I do it on an Android device Can not download. It is unable to download "stuck" with error in the download queue content is not supported " I tried to restart the device but it does not work. How to fix
Comments
Post a Comment