I have a small problem. Some browsers are not downloading the ".apk" files correctly. How to download ".apk" as ".apk"? (not as ".zip") Some browsers are convert them to ".zip".
I mean, the ".apk" file on my server and some people calling me and asking, how to rename ".zip" to ".apk".
By default the APK blob that was uploaded had content type of application/zip and the same content type reflected in the reposnse header causing the downloaded file to get a . zip extension on Android OS when download was finished.
Any APK file is a valid ZIP file. There's more to it than that - files that must be present, the fact that zipalign is normally used to align data structures within the file - but it's all valid ZIP.
Create a MIME-TYPE mapping of apk
to application/vnd.android.package-archive
. How you do this will vary on your web server.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With