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

Popular posts from this blog

Python SQLAlchemy:AttributeError: Neither 'Column' object nor 'Comparator' object has an attribute 'schema' -

java - How not to audit a join table and related entities using Hibernate Envers? -

mongodb - CakePHP paginator ignoring order, but only for certain values -