Unable to download APK files from your server

If you want to put your .apk files up on your server, like I often do, so that friend/family can download and test for you – suckers – then you might run into an issue with mime-types like I did. Every time I tried to download the .apk file I got a “unable to download file” error on my phone.  Fortunately the solution is very simple. Just create a .htaccess file and place it in the folder where your .apk lives and place the following text in the file:

AddType application/vnd.android.package-archive apk

The file should download fine after that.

Tags: