How to download “.apk” as “.apk”? (not as “.zip”)

后端 未结 7 2015
天命终不由人
天命终不由人 2020-12-16 13:51

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 the

7条回答
  •  余生分开走
    2020-12-16 13:59

    This worked for me -

    It's a known issue but easy to fix.

    1. Login to the Web server using SSH

    2. Verify that the apk mime doesn't exist in nginx mime.types by running:

    cat /etc/nginx/mime.types

    1. Add apk mime type application/vnd.android.package-archive apk; into mime.types file using nano tool or vi (make sure it is inside the 'types{}')

    nano /etc/nginx/mime.types

    1. Restart nginx service

    /etc/init.d/nginx restart

提交回复
热议问题