[文章作者:张宴 本文版本:v1.0 最后修改:2010.01.20 转载请注明原文链接:http://blog.zyan.cc/android_apk_zip]
前天,金山网络的一位同事向我咨询了一个问题:很多用户反映,网站上提供的Android手机应用程序文件“xxx.apk”,用IE浏览器下载,扩展名就被自动被重命名成了“xxx.zip”,拷贝到手机上无法安装。我发现,由于APK文件本身就是压缩包,如果用户的电脑上装了WinRAR(85%的装机量),用IE下载APK文件,扩展名就会被自动改为“.zip”。
如果你的下载服务器为Nginx服务器,那么,在Nginx安装目录下的conf/mime.types文件的对应位置,加上以下一行语句,指定APK文件的MIME类型为 application/vnd.android.package-archive 即可:
截至本文发布时,存在“xxx.apk”下载时被自动重命名为“xxx.zip”问题的网站很多,其中不乏一些提供 Android 程序下载的知名网站,例如:新浪微博、街旁网。
新浪微博官方 Android 手机客户端下载页:http://t.sina.com.cn/mobile/android.php
街旁 Android 版客户端下载页:http://we.jiepang.com/client-android/
增加APK文件的 MIME 类型后,用IE下载就正常了,例如:金山手机卫士、腾讯手机QQ
金山手机卫士下载页:http://m.ijinshan.com/
腾讯手机QQ Android版下载页:http://mobile.qq.com/2010/android/
前天,金山网络的一位同事向我咨询了一个问题:很多用户反映,网站上提供的Android手机应用程序文件“xxx.apk”,用IE浏览器下载,扩展名就被自动被重命名成了“xxx.zip”,拷贝到手机上无法安装。我发现,由于APK文件本身就是压缩包,如果用户的电脑上装了WinRAR(85%的装机量),用IE下载APK文件,扩展名就会被自动改为“.zip”。
如果你的下载服务器为Nginx服务器,那么,在Nginx安装目录下的conf/mime.types文件的对应位置,加上以下一行语句,指定APK文件的MIME类型为 application/vnd.android.package-archive 即可:
application/vnd.android.package-archive apk;
截至本文发布时,存在“xxx.apk”下载时被自动重命名为“xxx.zip”问题的网站很多,其中不乏一些提供 Android 程序下载的知名网站,例如:新浪微博、街旁网。
新浪微博官方 Android 手机客户端下载页:http://t.sina.com.cn/mobile/android.php
街旁 Android 版客户端下载页:http://we.jiepang.com/client-android/
增加APK文件的 MIME 类型后,用IE下载就正常了,例如:金山手机卫士、腾讯手机QQ
金山手机卫士下载页:http://m.ijinshan.com/
腾讯手机QQ Android版下载页:http://mobile.qq.com/2010/android/
Kritika
2024-10-15 14:01
Hello, Handsome Guys! Its the time when you must involve in our exclusive escort service near me in Aerocity. We welcome you to our Aerocity escort service At our escort agency, you will find luxurious Escorts in Aerocity. We receive the most popular Escorts in Aerocity. All the Aerocity escorts are attractive and stylish. Exotic diversion is undoubtedly all any of us need in our lives. Sex is all we say in our lives should remain merry. Sexual satisfaction is something that we ought not to ever_traits doubt about.When you are dealing with our agency, you will be getting the best Escorts in Aerocity. Our escorts services operating in Aerocity are highly exclusive and unique. These Services are in fashion and worth every penny. Aerocity accompanies Services can be availed in different types. At our agency, we handle several gents daily. Our agency is one of the most fantastic places where gents come regularly to satisfy their desires. All these gents come with different desires and expectations.Premium Aerocity Escorts Hirehttps://delhi.kritikabakshi.com/https://delhi.kritikabakshi.com/aerocity-escorthttps://delhi.kritikabakshi.com/mahipalpur-escorthttps://delhi.kritikabakshi.com/mahipalpur-escort
Pratiksha
2024-10-15 17:59
If you want to avail yourself of the best Escort in Pune, our escort agency is here to make you have one of your most unforgettable experiences. Our high-class and professional escorts make sure that all your demands are highly accomplished. Whether it is to attend an event, to spend a night, or any other personal reason, we ensure that you have just the right escort to make your time in Pune extra special.https://wettynyt.com/call-girls/maharashtra/Indore/https://wettynyt.com/call-girls/maharashtra/pune/https://wettynyt.com/call-girls/maharashtra/Dehradun/https://wettynyt.com/call-girls/karnataka/Haridwar/
asd
2024-12-12 13:20
PG SLOT
asd
2024-12-12 13:20
https://pgslot-online.to/
分页: 7/7 2 3 4 5 6 7