{"id":1168,"date":"2020-06-09T11:07:08","date_gmt":"2020-06-09T11:07:08","guid":{"rendered":"http:\/\/www.netexl.com\/blog\/?p=1168"},"modified":"2026-04-02T09:28:29","modified_gmt":"2026-04-02T09:28:29","slug":"allow-iis-web-server-to-serve-apk-file-for-download","status":"publish","type":"post","link":"https:\/\/www.netexl.com\/blog\/allow-iis-web-server-to-serve-apk-file-for-download\/","title":{"rendered":"Allow IIS Web Server to serve APK file for download"},"content":{"rendered":"\n<p>If you upload APK to a web server and try to download it on mobile be giving the URL of APK, it will fail since web server will block serving of any file type not recognized by it. In order to allow serving of APK file from the IIS web server add following mime-type in the web.config file<\/p>\n\n\n\n<p>The complete entry should be as following<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>&lt;configuration>\n\t&lt;system.webServer>\n\t\t&lt;staticContent>\n\t\t\t&lt;mimeMap fileExtension=\".apk\" mimeType=\"application\/vnd.android.package-archive\"\/>\n\t\t&lt;\/staticContent>\n\t&lt;\/system.webServer>\n&lt;\/configuration>\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>If you upload APK to a web server and try to download it on mobile be giving the URL of APK, it will fail since web server will block serving of any file type not recognized by it. In order to allow serving of APK file from the IIS web server add following mime-type in the web.config file The complete entry should be as following<\/p>\n","protected":false},"author":5,"featured_media":1539,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,14],"tags":[],"class_list":["post-1168","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-asp-net","category-how-to"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1168","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/comments?post=1168"}],"version-history":[{"count":3,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1168\/revisions"}],"predecessor-version":[{"id":1172,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/posts\/1168\/revisions\/1172"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/media\/1539"}],"wp:attachment":[{"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/media?parent=1168"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/categories?post=1168"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.netexl.com\/blog\/wp-json\/wp\/v2\/tags?post=1168"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}