Why the PHP method $mime = mime_content_type($filename); gives mime-type = application/zip for apk files? I defined apk mimetype in htaccess
.htaccess
<IfModule mod_mime.c> AddType application/vnd.android.package-archive apk AddType application/apk apk AddType application/java-archive jar </Ifmodule> <FilesMatch \.apk$> SetHandler application/vnd.android.package-archive </FilesMatch>
I tried all the solutions below, but still none of them solved the problem. Need help with this.
source share